From 0f04bbdc31f75031602d384adedb7292c720e44d Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 23 Oct 2017 16:54:00 +0800 Subject: [PATCH] ssh-agent: normal users only --- nixos/modules/programs/ssh.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index e0fbba897fa..775bf427645 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -202,6 +202,7 @@ in systemd.user.services.ssh-agent = mkIf cfg.startAgent { description = "SSH Agent"; wantedBy = [ "default.target" ]; + unitConfig.ConditionUser = "!@system"; serviceConfig = { ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent"; ExecStart =