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 | |
parent | 5b3e403eca517a090f1d98c4cd504762257276a8 (diff) | |
download | nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.gz nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.bz2 nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.lz nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.xz nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.tar.zst nixpkgs-32e7904624d1d79faf4ba0d3389d1834614c986c.zip |
gnupg agent module: fix ssh agent assertion logic
Diffstat (limited to 'nixos')
-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 8af55f38992..addc9dcca87 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!"; } ]; |