Compare commits

..

2 Commits

Author SHA1 Message Date
17da77f1c3 Replace path with nix/store path 2023-05-05 12:56:23 +02:00
66984370b5 Add source for builting envs 2023-05-05 12:56:17 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# or security.sudo.extraRules instead.
# Set editor to nvim
Defaults editor=/run/current-system/sw/bin/nvim
Defaults editor=${pkgs.neovim}/bin/nvim
# Keep SSH_AUTH_SOCK so that pam_ssh_agent_auth.so can do its magic.
Defaults env_keep+=SSH_AUTH_SOCK

View File

@ -80,6 +80,7 @@ in
};
# user environment variables
sessionVariables = {
# see https://discourse.nixos.org/t/how-to-use-xdg-runtime-dir-in-pam-sessionvariables/10120/3 about the builtin variable
SSH_AUTH_SOCK = "${builtins.getEnv"XDG_RUNTIME_DIR"}/ssh-agent.socket";
};
};