diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-02 13:35:26 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-02 13:56:43 +0100 |
commit | b0eda43eedcd36ebc199596d3a3ecf9f5b74f55a (patch) | |
tree | ed21523573a7431c47db0015f662284de474fc92 /modules | |
parent | fd8b72694d426cb2dd5cacbc821caf081f7b56e2 (diff) | |
download | dots-b0eda43eedcd36ebc199596d3a3ecf9f5b74f55a.tar.gz dots-b0eda43eedcd36ebc199596d3a3ecf9f5b74f55a.zip |
Update doas module
Diffstat (limited to 'modules')
-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"; |