Add sudo config
This commit is contained in:
parent
195bcedd93
commit
f1b697eb73
2 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue