Make audiobookshelf togglable per host
This commit is contained in:
parent
9a10b7017b
commit
f55e94ad4c
|
@ -1,6 +1,14 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.homelab.audiobookshelf;
|
||||
in
|
||||
{
|
||||
options.features.homelab.audiobookshelf.enable = mkEnableOption "Enable audiobookshelf";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
|
||||
|
@ -18,4 +26,5 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue