doas again

This commit is contained in:
Simon Gardling 2024-09-21 17:54:24 -04:00
parent 8f2d53777b
commit effcf49fc5
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 16 additions and 5 deletions

View File

@ -4,11 +4,11 @@ format_home:
nixfmt ~/.config/home-manager
format_system:
run0 nixfmt /etc/nixos
doas nixfmt /etc/nixos
system_update:
run0 nix flake update /etc/nixos
run0 nixos-rebuild boot --impure
doas nix flake update /etc/nixos
doas nixos-rebuild boot --impure
home_update:
nix flake update ~/.config/home-manager

View File

@ -89,8 +89,19 @@
# Set your time zone.
time.timeZone = "America/New_York";
#lets use run0 instead!
security.sudo.enable = false;
security = {
#lets use doas and not sudo!
doas.enable = true;
sudo.enable = false;
# Configure doas
doas.extraRules = [
{
users = [ "${username}" ];
keepEnv = true;
persist = true;
}
];
};
age.identityPaths = [ "/home/${username}/.ssh/id_ed25519" ];