1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Fix sops usage in wireguard module

This commit is contained in:
Stefan Ellmauthaler 2022-07-31 13:59:59 +02:00
parent 95501e7f77
commit b1bbfb60a6
Signed by: ellmau
GPG Key ID: C804A9C1B7AF8256

View File

@ -166,7 +166,7 @@
((isServer || isPeer) && !(isServer && isPeer)) ((isServer || isPeer) && !(isServer && isPeer))
"host must be either server or peer"; "host must be either server or peer";
lib.nameValuePair (mkInterfaceName interface) ({ lib.nameValuePair (mkInterfaceName interface) ({
privateKeyFile = sops.secrets."wireguard-${interface}".path; privateKeyFile = config.sops.secrets."wireguard-${interface}".path;
ips = mkAddresses value.prefixes myConfig.localIp; ips = mkAddresses value.prefixes myConfig.localIp;
inherit (myConfig) listenPort; inherit (myConfig) listenPort;
} // (if isServer then { } // (if isServer then {