diff --git a/system/servenix/default.nix b/system/servenix/default.nix index 2ea20741..b2e0af57 100644 --- a/system/servenix/default.nix +++ b/system/servenix/default.nix @@ -24,6 +24,7 @@ # General services ../services/authelia.nix + ../services/fileflows.nix ../services/gitea.nix ../services/gitea-runner.nix ../services/immich.nix diff --git a/system/services/fileflows.nix b/system/services/fileflows.nix new file mode 100644 index 00000000..44b99e7a --- /dev/null +++ b/system/services/fileflows.nix @@ -0,0 +1,51 @@ +{ + config, + lib, + pkgs, + ... +}: let + version = "25.10"; +in { + virtualisation.oci-containers.containers = { + fileflows = { + image = "revenz/fileflows:${version}"; + autoStart = true; + + login = { + # Uses DockerHub by default + # registry = ""; + + # DockerHub Credentials + username = "christoph.urlacher@protonmail.com"; + passwordFile = "${config.sops.secrets.docker-password.path}"; + }; + + dependsOn = []; + + ports = []; + + volumes = [ + "fileflows_temp:/temp" + "fileflows_data:/app/Data" + "fileflows_logs:/app/Logs" + + "/media/Movie:/media/movies" + "/media/Show:/media/tvshows" + + "/var/run/docker.sock:/var/run/docker.sock:ro" + ]; + + environment = { + PUID = "1000"; + PGID = "1000"; + TZ = "Europe/Berlin"; + }; + + extraOptions = [ + "--privileged" + "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + ]; + }; + }; +}