suggestarr and bookshelf
This commit is contained in:
25
modules/nixos/services/bookshelf/default.nix
Normal file
25
modules/nixos/services/bookshelf/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.services."bookshelf";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(lib.${namespace}.mkContainerService {
|
||||
inherit config;
|
||||
name = "bookshelf";
|
||||
image = "ghcr.io/pennydreadful/bookshelf:hardcover";
|
||||
internalPort = 8787;
|
||||
volumes = [
|
||||
"${cfg.configDir}/bookshelf:/config"
|
||||
"${cfg.configDir}/incomplete:/media/nas/main/appdata/incomplete"
|
||||
"${cfg.dataDir}/books:/media/nas/main/books"
|
||||
];
|
||||
environmentFiles = [ ];
|
||||
})
|
||||
];
|
||||
}
|
||||
23
modules/nixos/services/suggestarr/default.nix
Normal file
23
modules/nixos/services/suggestarr/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.services."suggestarr";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(lib.${namespace}.mkContainerService {
|
||||
inherit config;
|
||||
name = "suggestarr";
|
||||
image = "ciuse99/suggestarr";
|
||||
internalPort = 5000;
|
||||
volumes = [
|
||||
"${cfg.configDir}/suggestarr:/app/config/config_files"
|
||||
];
|
||||
environmentFiles = [ ];
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user