Use doas instead of sudo
This commit is contained in:
parent
c8132a67d0
commit
260bbc1ffd
@ -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;
|
||||||
|
@ -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"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user