adding audiobookshelf to nix

This commit is contained in:
Chris Cochrun 2024-02-14 21:44:08 -06:00
parent 543c78db6c
commit 0f3c4b3e1b
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ pkgs, lib, config, ... }:
with lib;
{
services.audiobookshelf = {
enable = true;
host = "0.0.0.0";
port = "8999";
};
services.caddy.virtualHosts = {
"abs.cochrun.xyz".extraConfig = ''
reverse_proxy localhost:${services.audiobookshelf.port}
'';
};
}

View file

@ -7,6 +7,7 @@
../../modules/base.nix
../../modules/servers.nix
../../pkgs/base-packages.nix
../../modules/audiobookshelf.nix
];
networking.hostName = "dalinar"; # Define your hostname.