mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add audiobookshelf
This commit is contained in:
parent
961a284dba
commit
2cbf65611f
4 changed files with 64 additions and 0 deletions
57
modules/nixos/server/audio.nix
Normal file
57
modules/nixos/server/audio.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.server.audio;
|
||||
arr.read.port = config.mods.server.local.ports.readarr;
|
||||
arr.prowl.port = config.mods.server.local.ports.prowlarr;
|
||||
arr.flare.port = config.mods.server.local.ports.flaresolverr;
|
||||
arr.torrent.port = config.mods.server.local.ports.torrent;
|
||||
port = config.mods.server.nginx.ports.audio;
|
||||
in with lib; {
|
||||
options.mods.server = {
|
||||
audio = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "enables audiobook servers";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.readarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings.server.port = arr.read.port;
|
||||
};
|
||||
|
||||
services.prowlarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings.server.port = arr.prowl.port;
|
||||
};
|
||||
|
||||
services.flaresolverr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = arr.flare.port;
|
||||
};
|
||||
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
openRPCPort = true;
|
||||
port = arr.torrent.port;
|
||||
settings = {
|
||||
download-dir = "/storage1/download";
|
||||
rpc-port = arr.torrent.port;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
};
|
||||
};
|
||||
|
||||
services.audiobookshelf = {
|
||||
inherit port;
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue