diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-28 15:45:21 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-28 15:45:21 +0100 |
commit | f3cb97394633f11ebcabc225459c9a5f1745efeb (patch) | |
tree | a1a33d11a55705968066419628684228cf00d998 /modules/doas.nix | |
parent | 4b607c1bfe3c217deaa79002160faee371bd72f8 (diff) | |
download | dots-f3cb97394633f11ebcabc225459c9a5f1745efeb.tar.gz dots-f3cb97394633f11ebcabc225459c9a5f1745efeb.zip |
Add doas module
Diffstat (limited to 'modules/doas.nix')
-rw-r--r-- | modules/doas.nix | 10 |
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"; + }; +} |