From b0d0ebacc979840d0433e1204aa803f9b46a3fb0 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 29 Oct 2023 10:06:16 +0100 Subject: [PATCH] Sudo with insults --- machines/common.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/machines/common.nix b/machines/common.nix index 7207943..2494523 100644 --- a/machines/common.nix +++ b/machines/common.nix @@ -194,11 +194,17 @@ inputs: }; }; - # generate login settings - # ykman otp chalresp --touch --generate 2 - security.pam.yubico = { - enable = true; - # debug = true; - mode = "challenge-response"; + security = { + # generate login settings + # ykman otp chalresp --touch --generate 2 + pam.yubico = { + enable = true; + # debug = true; + mode = "challenge-response"; + }; + sudo = { + package = pkgs.sudo.override { withInsults = true; }; + }; }; + }