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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user