diff --git a/hosts/harbor/configuration.nix b/hosts/harbor/configuration.nix index 0891c8f..43adf67 100644 --- a/hosts/harbor/configuration.nix +++ b/hosts/harbor/configuration.nix @@ -62,7 +62,7 @@ services.borg-server.repositories.comfy-station.ssh_public_key = builtins.readFile (../../static/keys + "/borg-jonas@comfy-station.pub"); networking.wg.server.enable = true; - networking.wg.server.privateKey = config.sops.secrets.wg-priv.path; + networking.wg.server.privateKeyFile = config.sops.secrets.wg-priv.path; # Allow unfree packages nixpkgs.config.allowUnfree = true; diff --git a/modules/networking/wireguard/server.nix b/modules/networking/wireguard/server.nix index 9ce4867..3366033 100644 --- a/modules/networking/wireguard/server.nix +++ b/modules/networking/wireguard/server.nix @@ -41,7 +41,9 @@ in { inherit (cfg) privateKeyFile; peers = [ - peers.jonas + { + inherit (peers.jonas) publicKey allowedIPs; + } ]; }; };