feat: test

This commit is contained in:
Nick 2025-06-08 22:39:09 -05:00
parent 5582f88a6d
commit d662409859
3 changed files with 19 additions and 31 deletions

View file

@ -18,6 +18,7 @@ in
subdomain = jellyfinName; subdomain = jellyfinName;
paths = { paths = {
path0 = "${servicePath}/${jellyfinLabel}"; path0 = "${servicePath}/${jellyfinLabel}";
path1 = "${servicePath}/${jellyfinLabel}/cache";
}; };
ports = { ports = {
port0 = 5055; # Jellyseer port0 = 5055; # Jellyseer

View file

@ -77,7 +77,7 @@ in
acme acme
audiobookshelf audiobookshelf
caddy caddy
# jellyfin jellyfin
logrotate logrotate
mastodon mastodon
minecraft minecraft

View file

@ -1,15 +1,8 @@
{ flake, ... }: { flake, ... }:
let let
inherit (flake.config.people) inherit (flake.config.people) user0;
user0 inherit (flake.config.machines.devices) ceres;
; inherit (flake.config.services.instances) jellyfin web;
inherit (flake.config.machines.devices)
ceres
;
inherit (flake.config.services.instances)
jellyfin
web
;
service = jellyfin; service = jellyfin;
localhost = web.localhost.address0; localhost = web.localhost.address0;
host = "${service.subdomain}.${web.domains.url0}"; host = "${service.subdomain}.${web.domains.url0}";
@ -41,30 +34,24 @@ in
}; };
}; };
fileSystems = fileSystems = {
let "/var/lib/${service.name}" = {
settings = { device = service.paths.path0;
fsType = "none"; fsType = "none";
options = [ options = [ "bind" ];
"bind" depends = [ ceres.storage0.mount ];
];
depends = [
ceres.storage0.mount
];
};
in
{
"/var/lib/${service.name}" = {
device = service.paths.path0;
} // settings;
"/var/cache/${service.name}" = {
device = "${service.paths.path0}/cache";
} // settings;
}; };
"/var/cache/${service.name}" = {
device = service.paths.path1;
fsType = "none";
options = [ "bind" ];
depends = [ ceres.storage0.mount ];
};
};
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 0755 ${user0} ${service.name} -" "Z ${service.paths.path0} 0755 ${user0} ${service.name} -"
"Z ${service.paths.path0}/cache 0755 ${user0} ${service.name} -" "Z ${service.paths.path1} 0755 ${user0} ${service.name} -"
]; ];
networking = { networking = {