diff options
author | EuAndreh <eu@euandre.org> | 2021-03-06 12:56:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-06 12:56:36 -0300 |
commit | 8f741f42f704d99f81c8c890b15304a0b978a601 (patch) | |
tree | 5a875bac9f57ea4c745b14c7ed12e76e185d0cc3 /servers/nixvps/configuration.nix | |
parent | TODOs.md: Mark tasks as DONE or CANCELLED, start sunsetting CGit in favor of ... (diff) | |
download | toph-8f741f42f704d99f81c8c890b15304a0b978a601.tar.gz toph-8f741f42f704d99f81c8c890b15304a0b978a601.tar.xz |
nixvps/configuration.nix: Use doas over sudo
Diffstat (limited to 'servers/nixvps/configuration.nix')
-rw-r--r-- | servers/nixvps/configuration.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/servers/nixvps/configuration.nix b/servers/nixvps/configuration.nix index 8564fbf..335b331 100644 --- a/servers/nixvps/configuration.nix +++ b/servers/nixvps/configuration.nix @@ -88,7 +88,13 @@ in { acceptTerms = true; email = "eu@euandre.org"; }; - sudo.wheelNeedsPassword = false; + sudo.enable = false; + doas = { + enable = true; + extraConfig = '' + permit nopass setenv { NIX_PATH } :wheel + ''; + }; }; services = { |