diff --git a/hosts/alt/configuration.nix b/hosts/alt/configuration.nix index f40b7f4..7b1384f 100644 --- a/hosts/alt/configuration.nix +++ b/hosts/alt/configuration.nix @@ -11,6 +11,7 @@ ../modules/base.nix ../modules/kafka-mounts.nix ../modules/server.nix + ../modules/syncthing.nix ./caddy.nix ]; @@ -20,6 +21,8 @@ privileged = true; }; + services.syncthing.guiAddress = "0.0.0.0:8384"; + networking.firewall.allowedTCPPorts = [ 80 443 # caddy 8000 @@ -27,6 +30,7 @@ 8010 # audio bookshelf 8080 # file browser 8234 # shiori (non-standard) + 8384 # syncthing 9117 8191 # flaresolverr ]; diff --git a/hosts/modules/syncthing.nix b/hosts/modules/syncthing.nix new file mode 100644 index 0000000..87d554b --- /dev/null +++ b/hosts/modules/syncthing.nix @@ -0,0 +1,11 @@ +{ config, pkgs, inputs, ... }: +{ + # sync thing + services.syncthing = { + enable = true; + openDefaultPorts = true; + user = "alex"; + configDir = "/home/alex/.config/syncthing"; + dataDir = "/home/alex"; + }; +}