diff options
Diffstat (limited to 'modules/doas.nix')
-rw-r--r-- | modules/doas.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/doas.nix b/modules/doas.nix index 27535b0..262028b 100644 --- a/modules/doas.nix +++ b/modules/doas.nix @@ -1,8 +1,15 @@ +{ pkgs, ... }: { security.sudo.enable = false; security.doas = { enable = true; wheelNeedsPassword = false; + extraRules = [{ + groups = [ "wheel" ]; + # keepEnv = true; + # I need to set NIX_PATH explicitly, since my user and root use different paths + setEnv = [ "NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels" ]; + }]; }; environment.shellAliases = { sudo = "doas"; |