kariru: add syncthing
This commit is contained in:
parent
6f3457ba2e
commit
10285807d9
3 changed files with 14 additions and 13 deletions
hosts/kariru/services
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./torrent.nix
|
./torrent.nix
|
||||||
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [pkgs.recyclarr];
|
environment.systemPackages = [pkgs.recyclarr];
|
||||||
|
@ -20,19 +21,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = 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 = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
|
12
hosts/kariru/services/syncthing.nix
Normal file
12
hosts/kariru/services/syncthing.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
"6881:6881" #qb
|
"6881:6881" #qb
|
||||||
"6881:6881/udp" #qb
|
"6881:6881/udp" #qb
|
||||||
];
|
];
|
||||||
|
volumes = ["/srv/gluetun:/tmp/gluetun"];
|
||||||
environmentFiles = [config.sops.secrets.gluetun.path];
|
environmentFiles = [config.sops.secrets.gluetun.path];
|
||||||
extraOptions = ["--cap-add=NET_ADMIN" "--device=/dev/net/tun:/dev/net/tun"];
|
extraOptions = ["--cap-add=NET_ADMIN" "--device=/dev/net/tun:/dev/net/tun"];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue