feat: audiobookshelf test

This commit is contained in:
Nick 2025-03-18 23:05:15 -05:00
parent 97ee6c4b24
commit eb63e130eb
4 changed files with 14 additions and 2 deletions

View file

@ -1,13 +1,13 @@
{ instancesFunctions }: { instancesFunctions }:
let let
inherit (instancesFunctions) inherit (instancesFunctions)
audiobookshelfLabel
audiobookshelfName
domain0 domain0
servicePath servicePath
sslPath sslPath
sopsPath sopsPath
; ;
audiobookshelfLabel = "Audiobookshelf";
audiobookshelfName = "audiobookshelf";
audiobookshelfSubdomain = "books"; audiobookshelfSubdomain = "books";
in in
{ {

View file

@ -3,6 +3,8 @@ let
inherit (instancesFunctions) inherit (instancesFunctions)
jellyfinLabel jellyfinLabel
jellyfinName jellyfinName
audiobookshelfLabel
audiobookshelfName
servicePath servicePath
sopsPath sopsPath
; ;
@ -20,6 +22,9 @@ in
path0 = "${servicePath}/${jellyfinLabel}"; path0 = "${servicePath}/${jellyfinLabel}";
path1 = jellyfinName; path1 = jellyfinName;
path2 = ""; path2 = "";
path3 = "${servicePath}/${audiobookshelfLabel}";
path4 = audiobookshelfName;
path6 = "";
}; };
ports = { ports = {
port0 = 445; # Samba port0 = 445; # Samba

View file

@ -4,6 +4,8 @@ let
instancesFunctions = { instancesFunctions = {
jellyfinLabel = "Jellyfin"; jellyfinLabel = "Jellyfin";
jellyfinName = "jellyfin"; jellyfinName = "jellyfin";
audiobookshelfLabel = "Audiobookshelf";
audiobookshelfName = "audiobookshelf";
domain0 = "cloudbert.fun"; domain0 = "cloudbert.fun";
domain1 = "the-nutrivore.social"; domain1 = "the-nutrivore.social";
domain2 = "the-nutrivore.com"; domain2 = "the-nutrivore.com";

View file

@ -7,6 +7,7 @@ let
inherit (flake.config.services.instances) inherit (flake.config.services.instances)
samba samba
jellyfin jellyfin
audiobookshelf
; ;
service = samba; service = samba;
in in
@ -23,6 +24,10 @@ in
path = jellyfin.paths.path0; path = jellyfin.paths.path0;
writable = "true"; writable = "true";
}; };
${service.paths.path4} = {
path = audiobookshelf.paths.path0;
writable = "true";
};
}; };
}; };
}; };