Move sudo settings to security.nix
All checks were successful
pre-commit / pre-commit (push) Successful in 2m9s

This commit is contained in:
Torjus Håkestad 2024-02-28 03:45:05 +01:00
parent f5619a9593
commit b67887a9d7
3 changed files with 8 additions and 4 deletions

View File

@ -31,9 +31,6 @@
PATH = [ "${XDG_BIN_HOME}" ];
};
# Enable sudo
security.sudo.enable = true;
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@ -1 +1 @@
{ imports = [ ./podman.nix ./fonts.nix ./users.nix ./services.nix ]; }
{ imports = [ ./podman.nix ./fonts.nix ./users.nix ./services.nix ./security.nix ]; }

7
system/security.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs, ... }: {
# Enable sudo
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
}