From 85fdaed9debd63624729d34cdc9ba4d8aa8cb689 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 18 Apr 2014 17:37:47 +0200 Subject: ssh-agent: Tweaks --- nixos/modules/programs/ssh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nixos/modules') diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index 005c77d255cb..fdb9dfd4b8c2 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -91,9 +91,12 @@ in description = "SSH Agent"; wantedBy = [ "default.target" ]; serviceConfig = - { ExecStart = "${pkgs.openssh}/bin/ssh-agent -a %t/ssh-agent"; + { ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent"; + ExecStart = "${pkgs.openssh}/bin/ssh-agent -a %t/ssh-agent"; + StandardOutput = "null"; Type = "forking"; Restart = "on-failure"; + SuccessExitStatus = "0 2"; }; }; -- cgit 1.4.1