about summary refs log tree commit diff
path: root/modules/doas/default.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-06-17 19:09:27 +0200
committerBaitinq <[email protected]>2022-06-17 19:09:27 +0200
commit07fc1999fc9963b7d31ce3a0f7e65112767ead23 (patch)
tree0b3e5b274f24d189fa8ca7bfa8d833f05252b4e0 /modules/doas/default.nix
downloadnixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.tar.gz
nixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.tar.bz2
nixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.zip
Initial commit
Diffstat (limited to 'modules/doas/default.nix')
-rw-r--r--modules/doas/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/doas/default.nix b/modules/doas/default.nix
new file mode 100644
index 0000000..39cb03b
--- /dev/null
+++ b/modules/doas/default.nix
@@ -0,0 +1,15 @@
+{ config, pkgs, ... }:
+
+{
+  security = {
+    sudo.enable = false;
+    doas = {
+      enable = true;
+      extraRules = [{
+        groups = [ "wheel" ];
+        keepEnv = true;
+        persist = true;
+      }];
+    };
+  };
+}