snowflake/hosts/yuki/services/stash.nix

27 lines
749 B
Nix
Raw Normal View History

2024-02-08 12:04:15 -05:00
_:
let
storagePath = "/home/notoh/docker/stash";
2024-02-08 12:04:15 -05:00
in
{
2023-05-28 22:00:50 -04:00
virtualisation.oci-containers.containers.stash = {
image = "stashapp/stash@sha256:b3b59809d5be1d82467253ec9e2ee98628a0db7527d27a6c7daa75e1fcda7deb"; # v0.24.3
2024-02-08 12:04:15 -05:00
ports = [ "9999:9999" ];
2023-05-28 22:00:50 -04:00
environment = {
STASH_STASH = "/data/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata/";
STASH_CACHE = "/cache/";
STASH_PORT = "9999";
};
volumes = [
"/etc/localtime:/etc/localtime:ro"
"${storagePath}/.config:/root/.stash"
"${storagePath}/data:/data"
"${storagePath}/.metadata:/metadata"
"${storagePath}/cache:/cache"
"${storagePath}/generated:/generated"
"${storagePath}/blobs:/blobs"
2023-05-28 22:00:50 -04:00
];
};
}