-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/ssh: add ssh-agent socket support in programs.ssh.startAgent #169155
base: master
Are you sure you want to change the base?
Conversation
Also add `SSH_AUTH_SOCK` `SSH_AGENT_PID` to the service. This allows systemd to track the ssh-agent socket natively. Signed-off-by: Anthony Rabbito <hello@anthonyrabbito.com>
373f50c
to
70f5ad3
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Will give it a try. |
Is there any way to bring priority to this? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3978 |
(tagging last few folks on git history) @acid-bong @pbsds @SuperSandro2000 @sigprof |
Please rewrite the git history to remove the merge commit, and fix the merge conflic |
Does this actually work? Apparently the upstream OpenSSH does not have any systemd support at all, and features like systemd service state notifications and socket activation support are added in distro-specific patches (e.g., see https://salsa.debian.org/ssh-team/openssh/-/tree/master/debian/patches, in particular Also the So it looks like adding the systemd socket activation support to the NixOS module for OpenSSH won't work until the corresponding code is added to the actual |
programs.ssh.startAgent
Also add
SSH_AUTH_SOCK
SSH_AGENT_PID
to the service.SSH_AUTH_SOCK
is referenced for the socket location onExecStart
andExecStartPre
.I'm a week-old nix user so a good set of eyes is appreciated.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes