aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/arrakis')
-rw-r--r--hosts/arrakis/default.nix16
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" = {