From 994ffc01a04e4793fcfe360117564df904d44049 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 15 Jun 2017 19:27:01 +0200 Subject: [PATCH] ssh module: disable agent by default --- nixos/doc/manual/release-notes/rl-1709.xml | 9 +++++++++ nixos/modules/programs/ssh.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-1709.xml b/nixos/doc/manual/release-notes/rl-1709.xml index b1bef8ef1c2..34cfe1702e9 100644 --- a/nixos/doc/manual/release-notes/rl-1709.xml +++ b/nixos/doc/manual/release-notes/rl-1709.xml @@ -104,6 +104,15 @@ rmdir /var/lib/ipfs/.ipfs dataDir. + + + The ssh-agent user service is not started by default + anymore. Use programs.ssh.startAgent to enable it if + needed. There is also a new programs.gnupg.agent + module that creates a gpg-agent user service. It can + also serve as a SSH agent if enableSSHSupport is set. + + diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index 4faef2c609b..e0fbba897fa 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -74,7 +74,7 @@ in startAgent = mkOption { type = types.bool; - default = true; + default = false; description = '' Whether to start the OpenSSH agent when you log in. The OpenSSH agent remembers private keys for you so that you don't have to type in