Fix Nix SSH agent forwarding service
This commit is contained in:
parent
fa1a81c7f4
commit
2ee77196ba
@ -17,10 +17,10 @@ in {
|
||||
config = lib.mkIf (cfg.sock != null) {
|
||||
systemd.services.ssh-agent-nix-proxy = {
|
||||
wantedBy = [ "nix-daemon.service" ];
|
||||
before = [ "nix-daemon.service" ];
|
||||
partOf = [ "nix-daemon.service" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:/run/nix-ssh-agent,mode=770,group=nixbld,user=root,reuseaddr UNIX-CONNECT:${cfg.sock}";
|
||||
ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:/run/nix-ssh-agent,mode=770,group=nixbld,user=root,reuseaddr,fork UNIX-CONNECT:${cfg.sock}";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user