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;