From 16056d1a3f6bfde8d9bcf5e48656f2c65748614c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 4 Sep 2025 09:23:53 +0200 Subject: nixos: multiple package updates --- nixos/modules/users.nix | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'nixos/modules/users.nix') 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; -- cgit v1.2.3