aux-config/modules/nixos/services/nas/traefik-proxy.nix
kB01 57a2d11ae6
Some checks are pending
/ Check NixOS Configuration (push) Waiting to run
Added Configuration for Audiobookshelf (does not evaluate yet)
2024-11-29 03:15:56 +01:00

24 lines
344 B
Nix

{
inputs,
config,
lib,
pkgs,
system,
...
}:
let
cfg = config.services.nas;
in
{
config = lib.mkIf (cfg.enable && cfg.useTraefik.enable) {
services.traefik = {
enable = true;
staticConfigOptions = {
entryPoints.web.address = ":80";
entryPoints.websecure.address = ":443";
};
};
};
}