dotfiles/modules/system/doas.nix
Noah Masur 417623965e refactor arguments to options
also change theme to colorscheme
2022-05-05 23:02:01 -04:00

31 lines
533 B
Nix

# Replace sudo with doas
{ config, ... }: {
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;
}];
};
};
home-manager.users.${config.user}.programs.fish.shellAliases = {
sudo = "doas";
};
}