mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
25 lines
477 B
Nix
25 lines
477 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkDefault;
|
|
in {
|
|
services.nginx.virtualHosts.${config.networking.domain} = {
|
|
locations = {
|
|
"/" = {
|
|
root = inputs.website.packages.${pkgs.system}.gensokyoZone;
|
|
};
|
|
"/docs" = {
|
|
root = pkgs.linkFarm "genso-docs-wwwroot" [
|
|
{
|
|
name = "docs";
|
|
path = inputs.self.packages.${pkgs.system}.docs;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|