diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-15 10:57:44 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-15 10:57:44 -0700 |
commit | c12d847ebfeaf5260cc9dfeba40dece9fdca1768 (patch) | |
tree | 23fd9981179c5ebe2e4ab59d7f203207051ab77b /hosts/arrakis/default.nix | |
parent | fcda9c69c44ef7511f783e51ba3c9ec87e7d6024 (diff) | |
download | nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar.gz nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar.bz2 nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar.lz nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar.xz nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.tar.zst nix-c12d847ebfeaf5260cc9dfeba40dece9fdca1768.zip |
Add missing VPN service @arrakis
Diffstat (limited to 'hosts/arrakis/default.nix')
-rw-r--r-- | hosts/arrakis/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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" = { |