Skip to content

Commit

Permalink
nixos/wireguard: Fix typo in error message
Browse files Browse the repository at this point in the history
generatePrivateKey -> generatePrivateKeyFile
  • Loading branch information
atlaua committed Mar 6, 2020
1 parent d055db2 commit b19c485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/wireguard.nix
Expand Up @@ -428,7 +428,7 @@ in
++ (attrValues (
mapAttrs (name: value: {
assertion = value.generatePrivateKeyFile -> (value.privateKey == null);
message = "networking.wireguard.interfaces.${name}.generatePrivateKey must not be set if networking.wireguard.interfaces.${name}.privateKey is set.";
message = "networking.wireguard.interfaces.${name}.generatePrivateKeyFile must not be set if networking.wireguard.interfaces.${name}.privateKey is set.";
}) cfg.interfaces))
++ map ({ interfaceName, peer, ... }: {
assertion = (peer.presharedKey == null) || (peer.presharedKeyFile == null);
Expand Down

0 comments on commit b19c485

Please sign in to comment.