Move to sudo-rs
This commit is contained in:
parent
adeb1a50ca
commit
6b3eb520d1
1 changed files with 4 additions and 14 deletions
|
@ -1,17 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
security = {
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Specify a timeout period and keep environment variables
|
||||
groups = [ "wheel" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
security.sudo-rs = {
|
||||
enable = true;
|
||||
execWheelOnly = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue