1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

nixos/wireguard: Fix typo in error message

generatePrivateKey -> generatePrivateKeyFile
This commit is contained in:
Luis Ressel 2020-03-06 16:01:23 +01:00
parent d055db280a
commit b19c485b22
No known key found for this signature in database
GPG key ID: DA29497A3D50DAF4

View file

@ -428,7 +428,7 @@ in
++ (attrValues ( ++ (attrValues (
mapAttrs (name: value: { mapAttrs (name: value: {
assertion = value.generatePrivateKeyFile -> (value.privateKey == null); 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)) }) cfg.interfaces))
++ map ({ interfaceName, peer, ... }: { ++ map ({ interfaceName, peer, ... }: {
assertion = (peer.presharedKey == null) || (peer.presharedKeyFile == null); assertion = (peer.presharedKey == null) || (peer.presharedKeyFile == null);