diff --git a/hosts/nuc/default.nix b/hosts/nuc/default.nix index e42e0e9f..b450dbed 100644 --- a/hosts/nuc/default.nix +++ b/hosts/nuc/default.nix @@ -26,6 +26,7 @@ zsh.enable = true; }; services = { + audiobookshelf.enable = true; docker.enable = true; hass.enable = true; jellyfin.enable = true; diff --git a/modules/services/audiobookshelf.nix b/modules/services/audiobookshelf.nix new file mode 100644 index 00000000..ef17041c --- /dev/null +++ b/modules/services/audiobookshelf.nix @@ -0,0 +1,19 @@ +{ + options, + config, + lib, + ... +}: +with lib; +with lib.my; let + cfg = config.modules.services.audiobookshelf; +in { + options.modules.services.audiobookshelf = {enable = mkBoolOpt false;}; + + config = mkIf cfg.enable { + services.audiobookshelf.enable = true; + services.audiobookshelf.openFirewall = true; + + user.extraGroups = ["audiobookshelf"]; + }; +}