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;
paths = {
path0 = "${servicePath}/${jellyfinLabel}";
path1 = "${servicePath}/${jellyfinLabel}/cache";
};
ports = {
port0 = 5055; # Jellyseer

View file

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

View file

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