1
Files
flake-homelab/ServeNix/services/box-fileflows.nix
2024-05-23 09:30:18 +02:00

44 lines
782 B
Nix

{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.box-fileflows = {
image = "revenz/fileflows:latest";
autoStart = true;
dependsOn = [
# "pihole"
];
ports = [
# "5000:5000"
];
volumes = [
"/media/Stash-Video:/media/Video"
"/media/Stash-Picture:/media/Picture"
"box-fileflows_temp:/temp"
"box-fileflows_logs:/app/Logs"
"box-fileflows_config:/app/Data"
"/var/run/docker.sock:/var/run/docker.sock:ro"
];
environment = {
TZ = "Europe/Berlin";
NVIDIA_VISIBLE_DEVICES = "all";
NVIDIA_DRIVER_CAPABILITIES = "all";
};
extraOptions = [
"--privileged" # Helps with CUDA issues
"--gpus=all"
"--net=behind-nginx"
];
};
}