Move homelab modules

This commit is contained in:
Oliver Davies 2025-04-05 09:00:00 +01:00
parent 2af364ef96
commit 42b70676bc
10 changed files with 6 additions and 20 deletions

View file

@ -0,0 +1,26 @@
{ config, lib, ... }:
with lib;
let
cfg = config.nixosModules.audiobookshelf;
in
{
options.nixosModules.audiobookshelf.enable = mkEnableOption "Enable audiobookshelf";
config = mkIf cfg.enable {
services = {
audiobookshelf = {
enable = true;
port = 4001;
};
caddy.virtualHosts."audiobookshelf.oliverdavies.uk" = {
useACMEHost = "oliverdavies.uk";
extraConfig = "reverse_proxy localhost:${toString config.services.audiobookshelf.port}";
};
};
};
}