aboutsummaryrefslogtreecommitdiff
path: root/modules/private/vpn/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/vpn/default.nix')
-rw-r--r--modules/private/vpn/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/private/vpn/default.nix b/modules/private/vpn/default.nix
index fbcba2f..a9051af 100644
--- a/modules/private/vpn/default.nix
+++ b/modules/private/vpn/default.nix
@@ -46,12 +46,17 @@ in
46 fi 46 fi
47 ''; 47 '';
48 48
49 systemd.slices.tinc = {
50 description = "Tinc slice";
51 };
52
49 systemd.services.tinc-Immae = { 53 systemd.services.tinc-Immae = {
50 description = "Tinc Daemon - Immae"; 54 description = "Tinc Daemon - Immae";
51 wantedBy = [ "multi-user.target" ]; 55 wantedBy = [ "multi-user.target" ];
52 after = [ "network.target" ]; 56 after = [ "network.target" ];
53 path = [ pkgs.tinc pkgs.bashInteractive pkgs.iproute pkgs.gnused pkgs.gawk pkgs.git pkgs.glibc ]; 57 path = [ pkgs.tinc pkgs.bashInteractive pkgs.iproute pkgs.gnused pkgs.gawk pkgs.git pkgs.glibc ];
54 serviceConfig = { 58 serviceConfig = {
59 Slice = "tinc.slice";
55 Type = "simple"; 60 Type = "simple";
56 Restart = "always"; 61 Restart = "always";
57 RestartSec = "3"; 62 RestartSec = "3";