Use doas instead of sudo

This commit is contained in:
Zuckerberg 2023-04-10 22:03:57 -06:00
parent c8132a67d0
commit 260bbc1ffd
2 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,14 @@ in
trusted-users = [ "root" "googlebot" ]; trusted-users = [ "root" "googlebot" ];
}; };
# don't use sudo
security.doas.enable = true;
security.sudo.enable = false;
security.doas.extraRules = [
# don't ask for password every time
{ groups = [ "wheel" ]; persist = true; }
];
nix.gc.automatic = true; nix.gc.automatic = true;
security.acme.acceptTerms = true; security.acme.acceptTerms = true;

View File

@ -21,6 +21,8 @@
shellInit = '' shellInit = ''
# disable annoying fish shell greeting # disable annoying fish shell greeting
set fish_greeting set fish_greeting
alias sudo="doas"
''; '';
}; };