feat: audiobookshelf test

This commit is contained in:
Nick 2025-03-18 22:28:17 -05:00
parent 637adca42f
commit c923300f82

View file

@ -1,6 +1,7 @@
{ flake, config, ... }: { flake, config, ... }:
let let
inherit (flake.config.services.instances) audiobookshelf web; inherit (flake.config.services.instances) audiobookshelf web;
inherit (flake.config.machines.devices) ceres;
service = audiobookshelf; service = audiobookshelf;
host = "${service.subdomain}.${web.domains.url0}"; host = "${service.subdomain}.${web.domains.url0}";
localhost = web.localhost.address0; localhost = web.localhost.address0;
@ -10,6 +11,7 @@ in
audiobookshelf = { audiobookshelf = {
enable = true; enable = true;
host = host; host = host;
dataDir = service.name;
}; };
caddy = { caddy = {
virtualHosts = { virtualHosts = {
@ -28,6 +30,17 @@ in
}; };
}; };
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";
options = [
"bind"
];
depends = [
ceres.storage0.mount
];
};
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 0755 ${service.name} ${service.name} -" "Z ${service.paths.path0} 0755 ${service.name} ${service.name} -"
]; ];