diff --git a/hosts/kariru/services/default.nix b/hosts/kariru/services/default.nix index 8b916ff..3b4a5df 100644 --- a/hosts/kariru/services/default.nix +++ b/hosts/kariru/services/default.nix @@ -4,6 +4,7 @@ imports = [ ./restic.nix ./torrent.nix + ./syncthing.nix ]; environment.systemPackages = [pkgs.recyclarr]; @@ -20,19 +21,6 @@ enable = true; openFirewall = true; }; - bazarr = { - enable = false; - openFirewall = true; - }; - readarr = { - enable = false; - openFirewall = true; - }; - lidarr = { - enable = false; - openFirewall = true; - }; - sabnzbd.enable = false; }; virtualisation.oci-containers.containers = { diff --git a/hosts/kariru/services/syncthing.nix b/hosts/kariru/services/syncthing.nix new file mode 100644 index 0000000..e019af2 --- /dev/null +++ b/hosts/kariru/services/syncthing.nix @@ -0,0 +1,12 @@ +_: { + networking.firewall.allowedTCPPorts = [8385]; + services.syncthing = { + enable = true; + openDefaultPorts = true; + dataDir = "/home/notoh/sync"; + configDir = "/home/notoh/.config/syncthing"; + guiAddress = "192.168.1.54:8385"; + user = "notoh"; + group = "users"; + }; +} diff --git a/hosts/kariru/services/torrent.nix b/hosts/kariru/services/torrent.nix index 54d37d4..65758ff 100644 --- a/hosts/kariru/services/torrent.nix +++ b/hosts/kariru/services/torrent.nix @@ -13,6 +13,7 @@ "6881:6881" #qb "6881:6881/udp" #qb ]; + volumes = ["/srv/gluetun:/tmp/gluetun"]; environmentFiles = [config.sops.secrets.gluetun.path]; extraOptions = ["--cap-add=NET_ADMIN" "--device=/dev/net/tun:/dev/net/tun"]; };