about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-10-08T16·30+0300
committertazjin <tazjin@tvl.su>2023-10-08T19·45+0000
commitf4787355a4a7e172c4ba77d160d7a21a5b8032e6 (patch)
treeb9cb202529b082ab1aab6ff4a763d7c65fee411f /ops
parent5f32f7610abb116e68d6d3fbb57fe528100ec58b (diff)
chore(ops/modules): enable passwordless sudo in users module r/6733
Change-Id: I8522a106bbadacf1b5720b4cd1102052aa360ff0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9575
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'ops')
-rw-r--r--ops/modules/tvl-users.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/ops/modules/tvl-users.nix b/ops/modules/tvl-users.nix
index 31a1a0d2cb83..d8269746a8f1 100644
--- a/ops/modules/tvl-users.nix
+++ b/ops/modules/tvl-users.nix
@@ -77,4 +77,9 @@
     rxvt-unicode-unwrapped.terminfo
     kitty.terminfo
   ];
+
+  security.sudo.extraRules = [{
+    groups = [ "wheel" ];
+    commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
+  }];
 }