diff --git a/system.nix b/system.nix index c4900e4..ddebc95 100644 --- a/system.nix +++ b/system.nix @@ -113,6 +113,12 @@ in ln -sfn ${powerScript} /usr/local/sbin/power.sh ''; + # Disable the credential cache: a fresh sudo timestamp (e.g. from a + # rebuild) would otherwise let anything running as duskyelf + # `sudo -n ` within the window. NOPASSWD keybind rule is + # unaffected, but every other sudo now prompts fresh. + security.sudo.extraConfig = "Defaults timestamp_timeout=0"; + security.sudo.extraRules = [ { users = [ "duskyelf" ];