diff --git a/modules/nixos/sites/map/default.nix b/modules/nixos/sites/map/default.nix new file mode 100644 index 0000000..a28456f --- /dev/null +++ b/modules/nixos/sites/map/default.nix @@ -0,0 +1,24 @@ +{ + 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."/".extraConfig = '' + proxyPass = "http://localhost:8100"; + ''; + }; + }; +}