1
Files
flake-homelab/ServeNix/services/box-stash.nix
2024-08-21 01:17:26 +02:00

99 lines
1.7 KiB
Nix

{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.box-stash-cdp = {
image = "chromedp/headless-shell:latest";
autoStart = true;
dependsOn = [
# "pihole"
];
ports = [
# "9222:9222"
];
volumes = [];
environment = {};
extraOptions = [
# "--gpus=all"
# "--shm-size=2G"
"--net=behind-nginx"
];
};
virtualisation.oci-containers.containers.box-stash-flaresolverr = {
image = "ghcr.io/flaresolverr/flaresolverr:latest";
autoStart = true;
dependsOn = [
# "pihole"
];
ports = [
# "8191:8191"
];
volumes = [];
environment = {
LOG_LEVEL = "info";
};
extraOptions = [
# "--gpus=all"
# "--shm-size=2G"
"--net=behind-nginx"
];
};
virtualisation.oci-containers.containers.box-stash = {
image = "stashapp/stash:latest";
autoStart = true;
dependsOn = [
"box-stash-cdp"
"box-stash-flaresolverr"
# "pihole"
];
ports = [
# "9999:9999"
];
volumes = [
"/media/Stash-Picture:/data/picture"
"/media/Stash-Video:/data/video"
"/media/Stash-Clips:/data/clips"
"box-stash_config:/root/.stash"
"box-stash_metadata:/metadata"
"box-stash_generated:/generated"
"box-stash_blobs:/blobs"
"box-stash_cache:/cache"
];
environment = {
STASH_PORT = "9999";
STASH_CACHE = "/cache/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata/";
STASH_STASH = "/data/";
NVIDIA_VISIBLE_DEVICES = "all";
NVIDIA_DRIVER_CAPABILITIES = "all";
};
extraOptions = [
"--privileged"
"--gpus=all"
"--net=behind-nginx"
];
};
}