summary refs log tree commit diff
path: root/nixos/modules/programs/ssh.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-10-23 16:54:00 +0800
committerPeter Hoeg <peter@hoeg.com>2017-10-24 16:30:13 +0800
commit0f04bbdc31f75031602d384adedb7292c720e44d (patch)
treed92c92f3080028e29e1fec2405fc4634d4cac452 /nixos/modules/programs/ssh.nix
parent8b846473be221e19275badab3d521692bc5207c3 (diff)
downloadnixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar.gz
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar.bz2
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar.lz
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar.xz
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.tar.zst
nixpkgs-0f04bbdc31f75031602d384adedb7292c720e44d.zip
ssh-agent: normal users only
Diffstat (limited to 'nixos/modules/programs/ssh.nix')
-rw-r--r--nixos/modules/programs/ssh.nix1
1 files changed, 1 insertions, 0 deletions
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 =