mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: audiobookshelf test
This commit is contained in:
parent
637adca42f
commit
c923300f82
1 changed files with 13 additions and 0 deletions
|
@ -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} -"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue