Skip to content

Commit

Permalink
feat(services): Add audiobookshelf
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Dec 20, 2023
1 parent 33b8cd8 commit 473b6e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/nuc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
zsh.enable = true;
};
services = {
audiobookshelf.enable = true;
docker.enable = true;
hass.enable = true;
jellyfin.enable = true;
Expand Down
19 changes: 19 additions & 0 deletions modules/services/audiobookshelf.nix
Original file line number Diff line number Diff line change
@@ -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"];
};
}

0 comments on commit 473b6e9

Please sign in to comment.