aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/users.nix')
-rw-r--r--nixos/modules/users.nix25
1 files changed, 19 insertions, 6 deletions
diff --git a/nixos/modules/users.nix b/nixos/modules/users.nix
index 7d0dc77..f3b7fbe 100644
--- a/nixos/modules/users.nix
+++ b/nixos/modules/users.nix
@@ -43,12 +43,25 @@ in {
};
};
- security.sudo.extraRules = [
- {
- groups = ["wheel"];
- commands = ["ALL"];
- }
- ];
+ security = {
+ doas = {
+ enable = true;
+ extraRules = [
+ {
+ groups = ["wheel"];
+ keepEnv = true;
+ persist = true;
+ }
+ ];
+ };
+
+ sudo.extraRules = [
+ {
+ groups = ["wheel"];
+ commands = ["ALL"];
+ }
+ ];
+ };
services.openssh = {
enable = true;