diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-09-05 14:35:40 +0200 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2021-11-08 14:05:24 -0800 |
commit | d14ae62671fd4eaec57427da1e50f91d6a5f9605 (patch) | |
tree | b95f5d53687195cfda8c382d426b46bae48b70ee /nixos/modules/security | |
parent | 0f410940884437e4337e8f5d2ec3f7b702a7a836 (diff) | |
download | nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar.gz nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar.bz2 nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar.lz nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar.xz nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.tar.zst nixpkgs-d14ae62671fd4eaec57427da1e50f91d6a5f9605.zip |
nixos/terminfo: inherit TERMINFO* env vars also for doas
This should mirror the behavior we implement for sudo: The TERMINFO and TERMINFO_DIRS variables are inherited from the normal user's environment, so terminfo files installed in the user's profile can be found by ncurses applications running as root.
Diffstat (limited to 'nixos/modules/security')
-rw-r--r-- | nixos/modules/security/doas.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/doas.nix b/nixos/modules/security/doas.nix index 9a3daf4f504..2a814f17e45 100644 --- a/nixos/modules/security/doas.nix +++ b/nixos/modules/security/doas.nix @@ -15,7 +15,7 @@ let (optionalString rule.noLog "nolog") (optionalString rule.persist "persist") (optionalString rule.keepEnv "keepenv") - "setenv { SSH_AUTH_SOCK ${concatStringsSep " " rule.setEnv} }" + "setenv { SSH_AUTH_SOCK TERMINFO TERMINFO_DIRS ${concatStringsSep " " rule.setEnv} }" ]; mkArgs = rule: |