services/enthalpy: resolve collision of RuntimeDirectory
entries
This commit is contained in:
parent
6308269e6c
commit
5e6a83bb66
|
@ -15,7 +15,7 @@ in
|
|||
enable = mkEnableOption "bird for site-scope connectivity";
|
||||
socket = mkOption {
|
||||
type = types.str;
|
||||
default = "/run/enthalpy/bird.ctl";
|
||||
default = "/run/enthalpy/bird2/bird.ctl";
|
||||
description = ''
|
||||
Path to the bird control socket.
|
||||
'';
|
||||
|
@ -57,7 +57,7 @@ in
|
|||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
DynamicUser = true;
|
||||
RuntimeDirectory = "enthalpy";
|
||||
RuntimeDirectory = "enthalpy/bird2";
|
||||
ExecStart = "${pkgs.bird}/bin/bird -s ${cfg.bird.socket} -c /etc/enthalpy/bird2.conf";
|
||||
ExecReload = "${pkgs.bird}/bin/birdc -s ${cfg.bird.socket} configure";
|
||||
ExecStop = "${pkgs.bird}/bin/birdc -s ${cfg.bird.socket} down";
|
||||
|
|
|
@ -63,7 +63,6 @@ in
|
|||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
DynamicUser = true;
|
||||
RuntimeDirectory = "enthalpy";
|
||||
CapabilityBoundingSet = [ "CAP_NET_ADMIN" ];
|
||||
AmbientCapabilities = [ "CAP_NET_ADMIN" ];
|
||||
ProtectSystem = "full";
|
||||
|
|
|
@ -27,7 +27,6 @@ in
|
|||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
DynamicUser = true;
|
||||
RuntimeDirectory = "enthalpy";
|
||||
ExecStart = "${pkgs.gost}/bin/gost -L=socks5://[fc00::]:${toString config.networking.ports.enthalpy-gost}";
|
||||
ProtectSystem = "full";
|
||||
ProtectHome = "yes";
|
||||
|
|
|
@ -64,7 +64,6 @@ in
|
|||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
DynamicUser = true;
|
||||
RuntimeDirectory = "enthalpy";
|
||||
ExecStart = "${pkgs.tayga}/bin/tayga --config ${pkgs.writeText "tayga.conf" ''
|
||||
tun-device nat64
|
||||
ipv6-addr fc00::
|
||||
|
|
Loading…
Reference in a new issue