doas again

This commit is contained in:
2024-09-21 17:54:24 -04:00
parent 8f2d53777b
commit effcf49fc5
2 changed files with 16 additions and 5 deletions

View File

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

View File

@@ -89,8 +89,19 @@
# Set your time zone. # Set your time zone.
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
#lets use run0 instead! security = {
security.sudo.enable = false; #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" ]; age.identityPaths = [ "/home/${username}/.ssh/id_ed25519" ];