From 4e5adbd8690af9721cb5fe5e61fdfd50ae0d5951 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 24 Aug 2024 03:52:55 -0700 Subject: [PATCH] feat: switch from sudo to doas --- modules/linux/core/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/linux/core/default.nix diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix new file mode 100644 index 0000000..bc502c7 --- /dev/null +++ b/modules/linux/core/default.nix @@ -0,0 +1,13 @@ +{ + security.sudo.enable = false; + + security.doas = { + enable = true; + extraRules = [ + { + keepEnv = true; + persist = true; + } + ]; + }; +}