voyager: move addons

This commit is contained in:
2023-10-15 03:51:20 +02:00
parent 475ee691e0
commit 17e317b59e
4 changed files with 21 additions and 56 deletions

View File

@@ -22,7 +22,6 @@
./services/gitea.nix
./services/vaultwarden.nix
./services/calibre.nix
./services/stash.nix
./services/fancontrol.nix
./services/jupyter.nix
# ./services/searx.nix

View File

@@ -1,54 +0,0 @@
{ config, pkgs, lib, ... }:
let
host = "127.0.1.2";
port = "5008";
# Some uid I will never use for anything else
uid = config.ids.uids.amule;
gid = config.ids.gids.amule;
in {
sops.secrets."transmission/vpncreds" = {
owner = "transmission";
group = "transmission";
};
users.users.stash = {
inherit uid;
group = "stash";
isSystemUser = true;
useDefaultShell = true;
description = "Stash media hosting platform";
};
users.groups.stash = {
inherit gid;
};
# Stash media hosting platform
virtualisation.oci-containers.containers.stash = {
image = "stashapp/stash";
ports = [ "${host}:${port}:9999" ];
volumes = [
"/var/lib/stash/config:/root/.stash"
"/var/lib/stash/cache:/cache"
"/tank/media/stash/data:/data"
"/tank/media/stash/other/metadata:/metadata"
"/tank/media/stash/other/blobs:/blobs"
"/tank/media/stash/other/generated:/generated"
];
environment = {
STASH_STASH = "/data/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata";
STASH_CACHE = "/cache";
STASH_PORT = "9999";
};
environmentFiles = [
];
};
services.nginx.virtualHosts."stash.home.feal.no" = {
locations."/" = {
proxyPass = "http://${host}:${port}";
};
};
}