NixOS-Config/modules/system/programs/security/doas/default.nix
2024-11-18 17:14:02 -05:00

17 lines
258 B
Nix

{ ... }:
{
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{ # Give wheel root access
groups = [ "wheel" ];
keepEnv = true;
persist = true;
}
];
};
};
}