mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 01:24:05 -05:00
make parzival the jellyfin host
This commit is contained in:
parent
9252ac07a2
commit
35a4585c26
3 changed files with 3 additions and 96 deletions
|
|
@ -40,6 +40,7 @@
|
||||||
"hosts/common/optional/printing.nix"
|
"hosts/common/optional/printing.nix"
|
||||||
"hosts/common/optional/docker.nix"
|
"hosts/common/optional/docker.nix"
|
||||||
"modules/services/ollama"
|
"modules/services/ollama"
|
||||||
|
"modules/services/jellyfin"
|
||||||
"modules/services/mesh/client.nix"
|
"modules/services/mesh/client.nix"
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,8 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
imports = [
|
{
|
||||||
./tubearchivist.nix
|
|
||||||
];
|
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
|
||||||
|
|
@ -1,92 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
volumePath = "/overseer/services";
|
|
||||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
sops.secrets = {
|
|
||||||
"tubearchivist/secret" = {
|
|
||||||
sopsFile = "${sopsFolder}/services.yaml";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sops.templates = {
|
|
||||||
tubearchivist.content = ''
|
|
||||||
TA_PASSWORD=${config.sops.placeholder."tubearchivist/secret"}
|
|
||||||
ELASTIC_PASSWORD=${config.sops.placeholder."tubearchivist/secret"}
|
|
||||||
'';
|
|
||||||
archivist-es.content = ''
|
|
||||||
ELASTIC_PASSWORD=${config.sops.placeholder."tubearchivist/secret"}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.caddy = {
|
|
||||||
enable = true;
|
|
||||||
virtualHosts."ta.wanderingcrow.net".extraConfig = ''
|
|
||||||
reverse_proxy http://10.88.0.14:8000
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d ${volumePath}/tubearchivist"
|
|
||||||
"d ${volumePath}/tubearchivist/redis"
|
|
||||||
"d ${volumePath}/tubearchivist/es - 1000 0"
|
|
||||||
"d ${volumePath}/tubearchivist/ta/youtube"
|
|
||||||
"d ${volumePath}/tubearchivist/ta/cache"
|
|
||||||
];
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
tubearchivist = {
|
|
||||||
image = "bbilly1/tubearchivist";
|
|
||||||
extraOptions = [ "--ip=10.88.0.14" ];
|
|
||||||
volumes = [
|
|
||||||
"${volumePath}/tubearchivist/ta/youtube:/youtube"
|
|
||||||
"${volumePath}/tubearchivist/ta/cache:/cache"
|
|
||||||
];
|
|
||||||
environment = {
|
|
||||||
ES_URL = "http://10.88.0.16:9200";
|
|
||||||
REDIS_CON = "redis://10.88.0.15:6379";
|
|
||||||
HOST_UID = "1000";
|
|
||||||
HOST_GID = "1000";
|
|
||||||
TA_HOST = "https://ta.wanderingcrow.net";
|
|
||||||
TA_USERNAME = "admin";
|
|
||||||
TZ = "America/New_York";
|
|
||||||
};
|
|
||||||
environmentFiles = [ config.sops.templates.tubearchivist.path ];
|
|
||||||
dependsOn = [
|
|
||||||
"archivist-redis"
|
|
||||||
"archivist-es"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
archivist-redis = {
|
|
||||||
image = "redis";
|
|
||||||
extraOptions = [
|
|
||||||
"--ip=10.88.0.15"
|
|
||||||
"--ulimit=memlock=-1:-1"
|
|
||||||
];
|
|
||||||
volumes = [
|
|
||||||
"${volumePath}/tubearchivist/redis:/data"
|
|
||||||
];
|
|
||||||
dependsOn = [
|
|
||||||
"archivist-es"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
archivist-es = {
|
|
||||||
image = "elasticsearch:8.18.0";
|
|
||||||
extraOptions = [ "--ip=10.88.0.16" ];
|
|
||||||
environment = {
|
|
||||||
ES_JAVA_OPTS = "-Xms1g -Xmx1g";
|
|
||||||
"xpack.security.enabled" = "true";
|
|
||||||
"discovery.type" = "single-node";
|
|
||||||
"path.repo" = "/usr/share/elasticsearch/data/snapshot";
|
|
||||||
};
|
|
||||||
environmentFiles = [ config.sops.templates.archivist-es.path ];
|
|
||||||
volumes = [
|
|
||||||
"${volumePath}/tubearchivist/es:/usr/share/elasticsearch/data"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue