about summary refs log tree commit diff
path: root/nixos/modules/services/networking/wireguard.nix
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2020-03-06 16:01:23 +0100
committerLuis Ressel <aranea@aixah.de>2020-03-06 16:19:23 +0100
commitb19c485b221a6486a46626664da5c8c446b1eac5 (patch)
treecadad96b0c5f66e188de5a4a1c8ffb40ced367bf /nixos/modules/services/networking/wireguard.nix
parentd055db280afcf4e3000656be1bfa63d5b46b547b (diff)
nixos/wireguard: Fix typo in error message
generatePrivateKey -> generatePrivateKeyFile
Diffstat (limited to 'nixos/modules/services/networking/wireguard.nix')
-rw-r--r--nixos/modules/services/networking/wireguard.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix
index ff8e54a1ce20b..e8f83f6dd8bf8 100644
--- a/nixos/modules/services/networking/wireguard.nix
+++ b/nixos/modules/services/networking/wireguard.nix
@@ -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);