1

Add hydra service

This commit is contained in:
2023-09-01 11:38:26 +02:00
parent 46bd824ae1
commit 53a6f5ec7e
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{config, lib, pkgs, ...}:
{
virtualisation.oci-containers.containers.hydra = {
image = "linuxserver/nzbhydra2:latest";
autoStart = true;
dependsOn = [
"sabnzbd"
];
ports = [
"5076:5076"
];
volumes = [
"hydra_config:/config"
];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
};
extraOptions = [
# "--restart=always" # Conflicts with NixOS' default of using --rm
];
};
}

View File

@ -0,0 +1,36 @@
{config, lib, pkgs, ...}:
{
virtualisation.oci-containers.containers.stash = {
image = "stashapp/stash:latest";
autoStart = true;
dependsOn = [];
ports = [
"9999:9999"
];
volumes = [
"/media/Picture:/data/picture"
"/media/Video:/data/video"
"stash_config:/root/.stash"
"stash_metadata:/metadata"
"stash_generated:/generated"
"stash_blobs:/blobs"
"stash_cache:/cache"
];
environment = {
STASH_PORT = "9999";
STASH_CACHE = "/cache/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata/";
STASH_STASH = "/data/";
};
extraOptions = [
# "--restart=always" # Conflicts with NixOS' default of using --rm
];
};
}