cluster/services/websites: host hyprspace docs
This commit is contained in:
parent
9e749b336d
commit
4e7c83361b
2 changed files with 4 additions and 3 deletions
|
@ -21,7 +21,7 @@ in
|
||||||
|
|
||||||
importWebsites = expr: import expr {
|
importWebsites = expr: import expr {
|
||||||
tools = depot.lib.nginx;
|
tools = depot.lib.nginx;
|
||||||
inherit (depot) packages;
|
inherit (depot) inputs packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
websites = depot.lib.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
|
websites = depot.lib.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
|
||||||
|
@ -54,7 +54,7 @@ in
|
||||||
dns.records = let
|
dns.records = let
|
||||||
oldStaticAddr = [ depot.hours.VEGAS.interfaces.primary.addrPublic ];
|
oldStaticAddr = [ depot.hours.VEGAS.interfaces.primary.addrPublic ];
|
||||||
in lib.mkMerge [
|
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";
|
consulService = "static-lb";
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{ packages, tools }:
|
{ inputs, packages, tools }:
|
||||||
with tools.vhosts;
|
with tools.vhosts;
|
||||||
let inherit (tools) domain; in
|
let inherit (tools) domain; in
|
||||||
{
|
{
|
||||||
# websites
|
# websites
|
||||||
www = static packages.landing.webroot // { default = true; };
|
www = static packages.landing.webroot // { default = true; };
|
||||||
draw = static packages.excalidraw.webroot;
|
draw = static packages.excalidraw.webroot;
|
||||||
|
"docs.hyprspace" = static "${inputs.hyprspace.packages.docs}/share/www/hyprspace-docs";
|
||||||
|
|
||||||
# PSA sites
|
# PSA sites
|
||||||
stop-using-nix-env = static packages.stop-using-nix-env.webroot;
|
stop-using-nix-env = static packages.stop-using-nix-env.webroot;
|
||||||
|
|
Loading…
Add table
Reference in a new issue