summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-08 15:58:45 +0200
committerSilas Schöffel <sils@sils.li>2024-04-08 15:58:45 +0200
commit35da9740509934077c7ded66a1157377abedd2e1 (patch)
tree0da35804351746c00edce7717eb9f164757d4adf /modules
parentnetworking: disable Ipv6 (diff)
downloadnix-config-35da9740509934077c7ded66a1157377abedd2e1.tar.gz
nix-config-35da9740509934077c7ded66a1157377abedd2e1.zip
refactor: move sudo to modules
Diffstat (limited to 'modules')
-rw-r--r--modules/nixos/sils/default.nix1
-rw-r--r--modules/nixos/sils/sudo.nix8
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
+    '';
+  };
+}