Fix the OpenSSH/GnuPG agent assertion.

svn path=/nixos/trunk/; revision=18514
This commit is contained in:
Ludovic Courtès 2009-11-22 00:40:48 +00:00
parent 66d8af6d09
commit 8c349a9e71

View File

@ -340,11 +340,14 @@ in
message = "The X server needs HAL running. Set services.hal.enable to true";
}
{ assertion = (cfg.startSSHAgent -> !cfg.startGnuPGAgent)
&& (cfg.startGnuPGAgent -> !cfg.startSSHAgent);
{ assertion = if cfg.startSSHAgent
then !cfg.startGnuPGAgent
else (if cfg.startGnuPGAgent
then !cfg.startSSHAgent
else true);
message =
"The OpenSSH SSH agent and GnuPG agent cannot be started " +
"both. Choose between `startSSHAgent' and `startGnuPGAgent'.";
"The OpenSSH agent and GnuPG agent cannot be started both. "
"Choose between `startSSHAgent' and `startGnuPGAgent'.";
}
];