summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-15 15:40:14 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-15 15:40:14 -0500
commit54c6ed12b0c5844be789a7a4c865b004a2a70ac6 (patch)
treefe91289a4d4e7b3ffc4bca807bf02ca673bee90d /users
parent9f0dbb1523e5aaf686958d5e100375789ca5eaee (diff)
downloadnixos-54c6ed12b0c5844be789a7a4c865b004a2a70ac6.tar.xz
nixos-54c6ed12b0c5844be789a7a4c865b004a2a70ac6.zip
move sudo and doas config to user timmy and remove irrelevant option modules
Diffstat (limited to 'users')
-rw-r--r--users/timmy/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/timmy/default.nix b/users/timmy/default.nix
index 3a8a4e3..cb8eb7b 100644
--- a/users/timmy/default.nix
+++ b/users/timmy/default.nix
@@ -55,6 +55,17 @@ in {
];
};
+ # Enable sudo and doas
+ security.sudo = {
+ enable = true;
+ wheelNeedsPassword = false;
+ };
+ security.doas = {
+ enable = true;
+ wheelNeedsPassword = false;
+ extraRules = [{ keepEnv = true; }];
+ };
+
# Configure automatic login with getty
services.getty = lib.mkIf cfg.autologin.enable {
autologinUser = username;