config/modules/nixos/sites/map/default.nix
2024-06-06 12:22:31 -04:00

24 lines
435 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.sites.map;
in {
options.sites.map = with types; {
enable = mkBoolOpt false "Enable BlueMap for Alfie";
};
config = mkIf cfg.enable {
services.nginx.virtualHosts."cobblemonsurvival.zackmyers.io" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8100";
};
};
};
}