dotfiles/modules/system/doas.nix
2022-04-28 22:55:42 -04:00

27 lines
433 B
Nix

# Replace sudo with doas
{ ... }: {
security = {
# Remove sudo
sudo.enable = false;
# Add doas
doas = {
enable = true;
# No password required
wheelNeedsPassword = false;
# Pass environment variables from user to root
# Also requires removing password here
extraRules = [{
groups = [ "wheel" ];
noPass = true;
keepEnv = true;
}];
};
};
}