From f3cb97394633f11ebcabc225459c9a5f1745efeb Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 28 Jan 2021 15:45:21 +0100 Subject: Add doas module --- modules/doas.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/doas.nix (limited to 'modules/doas.nix') 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"; + }; +} -- cgit 1.4.1