Add sudo config

This commit is contained in:
Jan Kremer 2026-03-04 19:53:00 +01:00
parent 195bcedd93
commit f1b697eb73
No known key found for this signature in database
2 changed files with 16 additions and 1 deletions

View file

@ -19,6 +19,13 @@
}; };
}; };
security.sudo.extraConfig = ''
Defaults lecture = never
Defaults pwfeedback
Defaults timestamp_timeout = 0
Defaults env_keep += "DISPLAY EDITOR PATH"
'';
networking = { networking = {
hostName = "galanthus"; hostName = "galanthus";
networkmanager.enable = true; networkmanager.enable = true;

View file

@ -54,7 +54,15 @@
}; };
}; };
security.pam.services.sudo_local.touchIdAuth = true; # Enable TouchID for sudo security = {
pam.services.sudo_local.touchIdAuth = true; # Enable TouchID for sudo
sudo.extraConfig = ''
Defaults lecture = never
Defaults pwfeedback
Defaults timestamp_timeout = 60
Defaults env_keep += "DISPLAY EDITOR PATH"
'';
};
system = { system = {
primaryUser = "jan"; primaryUser = "jan";