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 = {
|
security.sudo-rs = {
|
||||||
sudo.enable = false;
|
enable = true;
|
||||||
doas = {
|
execWheelOnly = true;
|
||||||
enable = true;
|
|
||||||
extraRules = [
|
|
||||||
{ # Specify a timeout period and keep environment variables
|
|
||||||
groups = [ "wheel" ];
|
|
||||||
keepEnv = true;
|
|
||||||
persist = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue