From ab3332a2eb530a40d5eb77ead2c40515cd28a65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 22 Nov 2009 00:40:53 +0000 Subject: [PATCH] Rename `startSSHAgent' to `startOpenSSHAgent'. svn path=/nixos/trunk/; revision=18515 --- modules/rename.nix | 3 +++ modules/services/x11/display-managers/default.nix | 2 +- modules/services/x11/xserver.nix | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/rename.nix b/modules/rename.nix index a3b40da4213..77470d93200 100644 --- a/modules/rename.nix +++ b/modules/rename.nix @@ -71,6 +71,9 @@ in zipModules ([] ++ rename obsolete "boot.bootMount" to "boot.loader.grub.bootDevice" ++ rename obsolete "boot.grubSplashImage" to "boot.loader.grub.splashImage" +# X11 +++ rename obsolete "services.xserver.startSSHAgent" to "services.xserver.startOpenSSHAgent" + # KDE ++ rename deprecated "kde.extraPackages" to "environment.kdePackages" diff --git a/modules/services/x11/display-managers/default.nix b/modules/services/x11/display-managers/default.nix index 7cc270cf247..805016fe438 100644 --- a/modules/services/x11/display-managers/default.nix +++ b/modules/services/x11/display-managers/default.nix @@ -32,7 +32,7 @@ let exec > ~/.xsession-errors 2>&1 ''} - ${optionalString cfg.startSSHAgent '' + ${optionalString cfg.startOpenSSHAgent '' if test -z "$SSH_AUTH_SOCK"; then # Restart this script as a child of the SSH agent. (It is # also possible to start the agent as a child that prints diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 62fb26f829e..1ea26c5af0a 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -198,10 +198,10 @@ in ''; }; - startSSHAgent = mkOption { + startOpenSSHAgent = mkOption { default = true; description = '' - Whether to start the SSH agent when you log in. The SSH agent + 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 passphrases every time you make an SSH connection. Use ssh-add to add a key to the agent. @@ -340,14 +340,14 @@ in message = "The X server needs HAL running. Set services.hal.enable to true"; } - { assertion = if cfg.startSSHAgent + { assertion = if cfg.startOpenSSHAgent then !cfg.startGnuPGAgent else (if cfg.startGnuPGAgent - then !cfg.startSSHAgent + then !cfg.startOpenSSHAgent else true); message = "The OpenSSH agent and GnuPG agent cannot be started both. " - "Choose between `startSSHAgent' and `startGnuPGAgent'."; + "Choose between `startOpenSSHAgent' and `startGnuPGAgent'."; } ];