diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-07-11 01:24:13 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-04 02:07:49 +0200 |
commit | 32e7904624d1d79faf4ba0d3389d1834614c986c (patch) | |
tree | 6c748fbf9d0f640b97cbcc8df11541f52e5c064b /nixos/modules/programs/gnupg.nix | |
parent | 5b3e403eca517a090f1d98c4cd504762257276a8 (diff) | |
download | nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.gz nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.bz2 nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.lz nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.xz nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.zst nixlib-32e7904624d1d79faf4ba0d3389d1834614c986c.zip |
gnupg agent module: fix ssh agent assertion logic
Diffstat (limited to 'nixos/modules/programs/gnupg.nix')
-rw-r--r-- | nixos/modules/programs/gnupg.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/gnupg.nix b/nixos/modules/programs/gnupg.nix index 8af55f38992f..addc9dcca87e 100644 --- a/nixos/modules/programs/gnupg.nix +++ b/nixos/modules/programs/gnupg.nix @@ -92,7 +92,7 @@ in ''); assertions = [ - { assertion = cfg.agent.enableSSHSupport && !config.programs.ssh.startAgent; + { assertion = cfg.agent.enableSSHSupport -> !config.programs.ssh.startAgent; message = "You can't use ssh-agent and GnuPG agent with SSH support enabled at the same time!"; } ]; |