about summary refs log tree commit diff
path: root/lib/private-wireguard.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/private-wireguard.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private-wireguard.nix b/lib/private-wireguard.nix
index e063f39..0d9b904 100644
--- a/lib/private-wireguard.nix
+++ b/lib/private-wireguard.nix
@@ -16,12 +16,10 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
-    networking = let
-      age.secrets.wg-net.file = ../secrets/network/hostname/wireguard_privatekey.age;
-    in {
+    networking = {
       wireguard.interfaces.wg0 = {
         listenPort = port;
-        privateKeyFile = "/run/agenix/wireguard_privatekey";
+        privateKeyFile = "/var/lib/wireguard/wg0.key";
         ips = [
           "${wgcfg.subnet4}.${toString thisPeer.ipv4}/${toString wgcfg.mask4}"
         ];