ssh-agent: normal users only

This commit is contained in:
Peter Hoeg 2017-10-23 16:54:00 +08:00
parent 8b846473be
commit 0f04bbdc31

View File

@ -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 =