Add syncthing
This commit is contained in:
@ -23,6 +23,7 @@
|
|||||||
./services/nginx-proxy-manager.nix
|
./services/nginx-proxy-manager.nix
|
||||||
./services/pihole.nix
|
./services/pihole.nix
|
||||||
./services/portainer.nix
|
./services/portainer.nix
|
||||||
|
./services/syncthing.nix
|
||||||
./services/uptime-kuma.nix
|
./services/uptime-kuma.nix
|
||||||
./services/whats-up-docker.nix
|
./services/whats-up-docker.nix
|
||||||
./services/wireguard-vps.nix
|
./services/wireguard-vps.nix
|
||||||
|
|||||||
44
ServeNix/services/syncthing.nix
Normal file
44
ServeNix/services/syncthing.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
virtualisation.oci-containers.containers.syncthing = {
|
||||||
|
image = "lscr.io/linuxserver/syncthing:latest";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "8384:8384" # WebUI
|
||||||
|
"22000:22000/tcp"
|
||||||
|
"22000:22000/udp"
|
||||||
|
"21027:21027/udp"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"syncthing_config:/config"
|
||||||
|
|
||||||
|
"gitea_data:/data/gitea:ro"
|
||||||
|
"immich_data:/data/immich:ro"
|
||||||
|
"nextcloud_data:/data/nextcloud:ro"
|
||||||
|
"memos_data:/data/memos:ro"
|
||||||
|
|
||||||
|
# TODO: Add the rest
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "1000";
|
||||||
|
TZ = "Europe/Berlin";
|
||||||
|
# NVIDIA_VISIBLE_DEVICES = "all";
|
||||||
|
# NVIDIA_DRIVER_CAPABILITIES = "all";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--gpus=all"
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user