mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15: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, ... }:
|
||||
let
|
||||
inherit (flake.config.services.instances) audiobookshelf web;
|
||||
inherit (flake.config.machines.devices) ceres;
|
||||
service = audiobookshelf;
|
||||
host = "${service.subdomain}.${web.domains.url0}";
|
||||
localhost = web.localhost.address0;
|
||||
|
@ -10,6 +11,7 @@ in
|
|||
audiobookshelf = {
|
||||
enable = true;
|
||||
host = host;
|
||||
dataDir = service.name;
|
||||
};
|
||||
caddy = {
|
||||
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 = [
|
||||
"Z ${service.paths.path0} 0755 ${service.name} ${service.name} -"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue