syncthing-relay
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
./remote-builder
|
||||
./sshguard
|
||||
./syncthing
|
||||
./syncthing-relay
|
||||
./tailscale
|
||||
./vaultwarden
|
||||
./wifibackup
|
||||
|
||||
23
modules/services/syncthing-relay/default.nix
Normal file
23
modules/services/syncthing-relay/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.mj.services.syncthing-relay;
|
||||
in
|
||||
{
|
||||
options.mj.services.syncthing-relay = with lib.types; {
|
||||
enable = lib.mkEnableOption "enable syncthing-relay";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.syncthing.relay = {
|
||||
enable = true;
|
||||
providedBy = "jakstys.lt";
|
||||
};
|
||||
systemd.services.syncthing-relay.restartIfChanged = false;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
config.services.syncthing.relay.port
|
||||
config.services.syncthing.relay.statusPort
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user