From 48f28b030b83dbf8004db6fe586de4353ac3d165 Mon Sep 17 00:00:00 2001 From: ahtlon Date: Sat, 15 Nov 2025 17:49:54 +0100 Subject: [PATCH] [fanny] fix flushing init vpn --- machines/modules/malobeo/initssh.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/machines/modules/malobeo/initssh.nix b/machines/modules/malobeo/initssh.nix index 3733df0..8bd01c0 100644 --- a/machines/modules/malobeo/initssh.nix +++ b/machines/modules/malobeo/initssh.nix @@ -45,6 +45,20 @@ in initrdBin = [ pkgs.busybox pkgs.wireguard-tools pkgs.iproute2 ]; enable = true; network.enable = true; + services."stopInitVpn" = { + description = "stop init vpn"; + wantedBy = [ + "initrd.target" + ]; + after = [ + "zfs.target" + ]; + serviceConfig.StandardOutput = "journal+console"; + script = '' + networkctl down wg-initrd + ''; + serviceConfig.Type = "oneshot"; + }; }; network = { flushBeforeStage2 = true;