From 97b2e05f80711bdbe893d8a7df1c9565061887d7 Mon Sep 17 00:00:00 2001 From: John Lancaster Date: Thu, 3 Jul 2025 03:40:34 +0000 Subject: [PATCH] added root-ish options --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index c585cdb..931615b 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,14 @@ isNormalUser = true; } // userOptions config; + nix.settings.trusted-users = [ "root" "@wheel" ]; + security.sudo-rs = { + enable = true; + execWheelOnly = false; + wheelNeedsPassword = false; + extraConfig = "Defaults timestamp_timeout=1440"; + }; + programs.zsh.enable = lib.mkIf config.shell true; home-manager = {