Make audiobookshelf togglable per host

This commit is contained in:
Oliver Davies 2024-12-26 00:13:42 +00:00
parent 9a10b7017b
commit f55e94ad4c

View file

@ -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 @@
};
};
};
};
}