From c12d847ebfeaf5260cc9dfeba40dece9fdca1768 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 15 Oct 2024 10:57:44 -0700 Subject: Add missing VPN service @arrakis --- hosts/arrakis/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'hosts') diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index ba1d236..78ae971 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -369,6 +369,22 @@ wantedBy = [ "multi-user.target" ]; }; + "vpn" = { + after = [ "network.target" ]; + description = "VPN service"; + serviceConfig = { + RemainAfterExit = true; + Type = "oneshot"; + ExecStart = "/root/bin/vpnctl start"; + }; + unitConfig = { + ConditionPathExists = [ + "/root/bin/vpnctl" + ]; + }; + wantedBy = [ "multi-user.target" ]; + }; + }; systemd.paths."nftables-extra" = { -- cgit v1.2.3