Compare commits
2 Commits
0bbb789be9
...
17da77f1c3
Author | SHA1 | Date | |
---|---|---|---|
17da77f1c3 | |||
66984370b5 |
@ -2,7 +2,7 @@
|
|||||||
# or ‘security.sudo.extraRules’ instead.
|
# or ‘security.sudo.extraRules’ instead.
|
||||||
|
|
||||||
# Set editor to nvim
|
# 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.
|
# Keep SSH_AUTH_SOCK so that pam_ssh_agent_auth.so can do its magic.
|
||||||
Defaults env_keep+=SSH_AUTH_SOCK
|
Defaults env_keep+=SSH_AUTH_SOCK
|
||||||
|
@ -80,6 +80,7 @@ in
|
|||||||
};
|
};
|
||||||
# user environment variables
|
# user environment variables
|
||||||
sessionVariables = {
|
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";
|
SSH_AUTH_SOCK = "${builtins.getEnv"XDG_RUNTIME_DIR"}/ssh-agent.socket";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user