1
Files
flake-nixinator/system/services/fileflows-node.nix

50 lines
992 B
Nix

{
mylib,
config,
lib,
pkgs,
...
}: let
fileflowsVersion = "26.01";
in {
virtualisation.oci-containers.containers = {
fileflows-node = {
image = "revenz/fileflows:${fileflowsVersion}";
autoStart = false;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [];
volumes = [
"/home/christoph/Movies:/media/movies"
"/home/christoph/Shows:/media/tvshows"
# "/home/christoph/MusicVideos:/media/musicvideos" # NOTE: Not mounted on Nixinator
"fileflows_temp:/temp"
"/var/run/docker.sock:/var/run/docker.socl:ro"
];
hostname = "Nixinator";
environment = {
PUID = "3000";
PGID = "3000";
TZ = "Europe/Berlin";
FFNODE = "1";
ServerUrl = "https://fileflows.local.chriphost.de";
};
extraOptions = [
"--privileged"
"--device=nvidia.com/gpu=all"
# "--net=behind-nginx"
];
};
};
}