Fix path setting

Move Legion syncthing path to be default like everything else
This commit is contained in:
Evie Litherland-Smith 2023-10-22 07:52:24 +01:00
parent dccc55a301
commit 367ac8e689
2 changed files with 17 additions and 20 deletions

View file

@ -28,27 +28,24 @@ in {
allowedUDPPorts = [ port ]; allowedUDPPorts = [ port ];
}; };
}; };
services = { services.openvpn = {
syncthing.dataDir = "/var/lib/syncthing"; restartAfterSleep = true;
openvpn = { servers.xenia.config = ''
restartAfterSleep = true; dev ${vpn-dev}
servers.xenia.config = '' proto udp
dev ${vpn-dev} ifconfig 10.8.0.1 10.8.0.2
proto udp secret ${client-key}
ifconfig 10.8.0.1 10.8.0.2 port ${toString port}
secret ${client-key}
port ${toString port}
cipher AES-256-CBC cipher AES-256-CBC
auth-nocache auth-nocache
comp-lzo comp-lzo
keepalive 10 60 keepalive 10 60
ping-timer-rem ping-timer-rem
persist-tun persist-tun
persist-key persist-key
''; '';
};
}; };
environment.etc."openvpn/client.ovpn" = { environment.etc."openvpn/client.ovpn" = {

View file

@ -5,7 +5,7 @@ in {
inherit user; inherit user;
inherit (config.users.users.${user}) group; inherit (config.users.users.${user}) group;
enable = true; enable = true;
dataDir = lib.mkDefault "/home/${user}"; dataDir = "/home/${user}";
systemService = true; systemService = true;
openDefaultPorts = true; openDefaultPorts = true;
settings = { settings = {