Add hydra service
This commit is contained in:
30
ServeNix/services/hydra.nix
Normal file
30
ServeNix/services/hydra.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
36
ServeNix/services/stash.nix
Normal file
36
ServeNix/services/stash.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user