Move sudo settings to security.nix
All checks were successful
pre-commit / pre-commit (push) Successful in 2m9s
All checks were successful
pre-commit / pre-commit (push) Successful in 2m9s
This commit is contained in:
parent
f5619a9593
commit
b67887a9d7
@ -31,9 +31,6 @@
|
|||||||
PATH = [ "${XDG_BIN_HOME}" ];
|
PATH = [ "${XDG_BIN_HOME}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable sudo
|
|
||||||
security.sudo.enable = true;
|
|
||||||
|
|
||||||
# Enable flakes
|
# Enable flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
@ -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
7
system/security.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
# Enable sudo
|
||||||
|
security.sudo = {
|
||||||
|
enable = true;
|
||||||
|
wheelNeedsPassword = false;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user