kilgharrah: serve audiobookshelf
This commit is contained in:
parent
21fa41876a
commit
0ef661aae7
|
@ -34,6 +34,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
qenya.services.audiobookshelf = {
|
||||||
|
enable = true;
|
||||||
|
domain = "audiobookshelf.qenya.tel";
|
||||||
|
};
|
||||||
qenya.services.jellyfin = {
|
qenya.services.jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "jellyfin.qenya.tel";
|
domain = "jellyfin.qenya.tel";
|
||||||
|
|
|
@ -76,9 +76,11 @@
|
||||||
"rpool_albion/data" = { mountpoint = "none"; };
|
"rpool_albion/data" = { mountpoint = "none"; };
|
||||||
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
||||||
"rpool_albion/state" = { mountpoint = "none"; };
|
"rpool_albion/state" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/state/audiobookshelf" = { mountpoint = "/var/lib/audiobookshelf"; };
|
||||||
"rpool_albion/state/jellyfin" = { mountpoint = "/var/lib/jellyfin"; };
|
"rpool_albion/state/jellyfin" = { mountpoint = "/var/lib/jellyfin"; };
|
||||||
"rpool_albion/state/navidrome" = { mountpoint = "/var/lib/navidrome"; };
|
"rpool_albion/state/navidrome" = { mountpoint = "/var/lib/navidrome"; };
|
||||||
"rpool_albion/srv" = { mountpoint = "none"; };
|
"rpool_albion/srv" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/srv/audiobookshelf" = { mountpoint = "/srv/audiobookshelf"; };
|
||||||
"rpool_albion/srv/ftp" = { mountpoint = "/srv/ftp"; };
|
"rpool_albion/srv/ftp" = { mountpoint = "/srv/ftp"; };
|
||||||
"rpool_albion/srv/jellyfin" = { mountpoint = "/srv/jellyfin"; };
|
"rpool_albion/srv/jellyfin" = { mountpoint = "/srv/jellyfin"; };
|
||||||
"rpool_albion/srv/music" = { mountpoint = "/srv/music"; };
|
"rpool_albion/srv/music" = { mountpoint = "/srv/music"; };
|
||||||
|
|
32
services/audiobookshelf.nix
Normal file
32
services/audiobookshelf.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.qenya.services.audiobookshelf;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.qenya.services.audiobookshelf = {
|
||||||
|
enable = mkEnableOption "Audiobookshelf";
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
${cfg.domain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:8234/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
services.audiobookshelf.enable = true;
|
||||||
|
services.audiobookshelf.port = 8234;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./actual.nix
|
./actual.nix
|
||||||
|
./audiobookshelf.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./navidrome.nix
|
./navidrome.nix
|
||||||
|
|
Loading…
Reference in a new issue