diff --git a/modules/nixos/system/network/wireguard/default.nix b/modules/nixos/system/network/wireguard/default.nix index ea25802..8ba244b 100644 --- a/modules/nixos/system/network/wireguard/default.nix +++ b/modules/nixos/system/network/wireguard/default.nix @@ -10,7 +10,7 @@ config.sops.secrets."${config.syscfg.hostname}_wg_priv".path; listenPort = 1515; mtu = 1340; - postUp = if config.syscfg.net.wg.server.enable then '' + postSetup = if config.syscfg.net.wg.server.enable then '' for keyfile in /run/secrets/*_wg_pub; do if [ -f "$keyfile" ]; then ${pkgs.wireguard-tools}/bin/wg set %i \