cluster/services/websites: host hyprspace docs

This commit is contained in:
Max Headroom 2024-06-01 21:20:31 +02:00
parent 9e749b336d
commit 4e7c83361b
2 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ in
importWebsites = expr: import expr {
tools = depot.lib.nginx;
inherit (depot) packages;
inherit (depot) inputs packages;
};
websites = depot.lib.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
@ -54,7 +54,7 @@ in
dns.records = let
oldStaticAddr = [ depot.hours.VEGAS.interfaces.primary.addrPublic ];
in lib.mkMerge [
(lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
(lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" "docs.hyprspace" ] (lib.const {
consulService = "static-lb";
}))
{

View file

@ -1,10 +1,11 @@
{ packages, tools }:
{ inputs, packages, tools }:
with tools.vhosts;
let inherit (tools) domain; in
{
# websites
www = static packages.landing.webroot // { default = true; };
draw = static packages.excalidraw.webroot;
"docs.hyprspace" = static "${inputs.hyprspace.packages.docs}/share/www/hyprspace-docs";
# PSA sites
stop-using-nix-env = static packages.stop-using-nix-env.webroot;