diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-08 15:58:45 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-08 15:58:45 +0200 |
commit | 35da9740509934077c7ded66a1157377abedd2e1 (patch) | |
tree | 0da35804351746c00edce7717eb9f164757d4adf /modules | |
parent | networking: disable Ipv6 (diff) | |
download | nix-config-35da9740509934077c7ded66a1157377abedd2e1.tar.gz nix-config-35da9740509934077c7ded66a1157377abedd2e1.zip |
refactor: move sudo to modules
Diffstat (limited to 'modules')
-rw-r--r-- | modules/nixos/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/sudo.nix | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 2d15138..8ca6aa7 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -5,6 +5,7 @@ ./networking.nix ./nix.nix ./plymouth.nix + ./sudo.nix ./theming.nix ]; } diff --git a/modules/nixos/sils/sudo.nix b/modules/nixos/sils/sudo.nix new file mode 100644 index 0000000..3dfd79d --- /dev/null +++ b/modules/nixos/sils/sudo.nix @@ -0,0 +1,8 @@ +{...}: { + security.sudo = { + enable = true; + extraConfig = '' + Defaults lecture = never + ''; + }; +} |