manatee: Add audiobookshelf module
This commit is contained in:
29
hosts/manatee/modules/audiobookshelf/default.nix
Normal file
29
hosts/manatee/modules/audiobookshelf/default.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
let
|
||||||
|
enabled = config.mod.audiobookshelf.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
mod.audiobookshelf = {
|
||||||
|
enable = lib.mkEnableOption "Enable audiobookshelf module";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf enabled {
|
||||||
|
users.users.audiobookshelf = {
|
||||||
|
isSystemUser = true;
|
||||||
|
description = "audiobookshelf";
|
||||||
|
group = "storage";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.audiobookshelf = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
user = "audiobookshelf";
|
||||||
|
group = "storage";
|
||||||
|
|
||||||
|
host = "0.0.0.0";
|
||||||
|
port = 8000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@ in
|
|||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
|
||||||
transmission.enable = true;
|
transmission.enable = true;
|
||||||
|
audiobookshelf.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user