diff --git a/morph/lib/make-issuer.nix b/morph/lib/make-issuer.nix index 11d1b62609e60936c23b3bf2301a94ed6a6754b0..15c8f58f26cb6a2ad034c6e10391f4836be33bd9 100644 --- a/morph/lib/make-issuer.nix +++ b/morph/lib/make-issuer.nix @@ -71,8 +71,6 @@ services.private-storage.monitoring.vpn.client = { enable = true; - privateKeyFile = /var/secrets/monitoringvpn/client.key; ip = "172.23.23.11"; - endpointPublicKeyFile = /home/flo/Repositories/PrivateStorageio/morph/PrivateStorageSecrets/monitoringvpn/server.pub; }; } diff --git a/nixos/modules/monitoring/vpn/client.nix b/nixos/modules/monitoring/vpn/client.nix index 2515e53528e640965ba62c6b4a57dc4ec1ce753c..40cc0516301cb80780a3fb8d35035124aa8fb6d4 100644 --- a/nixos/modules/monitoring/vpn/client.nix +++ b/nixos/modules/monitoring/vpn/client.nix @@ -55,6 +55,7 @@ in { endpointPublicKeyFile = lib.mkOption { type = lib.types.path; example = lib.literalExample /var/secrets/monitoringvpn/server.pub; + default = ../../../../morph/PrivateStorageSecrets/monitoringvpn/server.pub; description = '' File with base64 public key generated by <command>cat private.key | wg pubkey > pubkey.pub</command>. '';