about summary refs log tree commit diff
path: root/modules/doas.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-28 15:45:21 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-28 15:45:21 +0100
commitf3cb97394633f11ebcabc225459c9a5f1745efeb (patch)
treea1a33d11a55705968066419628684228cf00d998 /modules/doas.nix
parent4b607c1bfe3c217deaa79002160faee371bd72f8 (diff)
downloaddots-f3cb97394633f11ebcabc225459c9a5f1745efeb.tar.gz
dots-f3cb97394633f11ebcabc225459c9a5f1745efeb.zip
Add doas module
Diffstat (limited to 'modules/doas.nix')
-rw-r--r--modules/doas.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/doas.nix b/modules/doas.nix
new file mode 100644
index 0000000..27535b0
--- /dev/null
+++ b/modules/doas.nix
@@ -0,0 +1,10 @@
+{
+  security.sudo.enable = false;
+  security.doas = {
+    enable = true;
+    wheelNeedsPassword = false;
+  };
+  environment.shellAliases = {
+    sudo = "doas";
+  };
+}