nixos/wireguard: Fix typo in error message
generatePrivateKey -> generatePrivateKeyFile
This commit is contained in:
parent
d055db280a
commit
b19c485b22
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue