nixos-config/modules/system/settings/security/privilege/default.nix

18 lines
359 B
Nix
Raw Normal View History

{ pkgs, ... }:
2024-12-09 23:07:20 -05:00
{
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{ # Specify a timeout period and keep environment variables
2024-12-09 23:07:20 -05:00
groups = [ "wheel" ];
keepEnv = true;
persist = true;
}
];
};
};
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
2024-12-09 23:07:20 -05:00
}