diff --git a/hosts/prismo/configuration.nix b/hosts/prismo/configuration.nix index d2e6821..a47e142 100644 --- a/hosts/prismo/configuration.nix +++ b/hosts/prismo/configuration.nix @@ -31,9 +31,6 @@ PATH = [ "${XDG_BIN_HOME}" ]; }; - # Enable sudo - security.sudo.enable = true; - # Enable flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/system/default.nix b/system/default.nix index 6dbaca0..a2a7ba6 100644 --- a/system/default.nix +++ b/system/default.nix @@ -1 +1 @@ -{ imports = [ ./podman.nix ./fonts.nix ./users.nix ./services.nix ]; } +{ imports = [ ./podman.nix ./fonts.nix ./users.nix ./services.nix ./security.nix ]; } diff --git a/system/security.nix b/system/security.nix new file mode 100644 index 0000000..5f0fc90 --- /dev/null +++ b/system/security.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: { + # Enable sudo + security.sudo = { + enable = true; + wheelNeedsPassword = false; + }; +}