From 9cad12aeb79e3b45fad012e5f93919c2ec25278f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 30 Sep 2021 23:11:29 +0300 Subject: refactor(corp/website): Write index into a folder instead This makes it possible to directly use the folder as an nginx root. Change-Id: I8cb5236f8d6d01658926330a01c9dfdfa7d60dcc Reviewed-on: https://cl.tvl.fyi/c/depot/+/3657 Reviewed-by: tazjin Tested-by: BuildkiteCI --- corp/website/default.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'corp/website') diff --git a/corp/website/default.nix b/corp/website/default.nix index e0e4570891..2a44d20991 100644 --- a/corp/website/default.nix +++ b/corp/website/default.nix @@ -9,18 +9,18 @@ let url = "https://tvl.su"; logo = "https://tvl.fyi/static/tvl-animated.svg"; }; -in depot.web.tvl.template { - title = "TVL (The Virus Lounge) - Software consulting"; - content = builtins.readFile ./content.md; - useUrls = true; # load resources from tvl.fyi - extraFooter = "\n|\n © ООО ТВЛ"; + index = depot.web.tvl.template { + title = "TVL (The Virus Lounge) - Software consulting"; + content = builtins.readFile ./content.md; + useUrls = true; # load resources from tvl.fyi + extraFooter = "\n|\n © ООО ТВЛ"; - # TODO(tazjin): The `.tvl-logo` thing can probably go in the shared CSS. - extraHead = '' - - + # TODO(tazjin): The `.tvl-logo` thing can probably go in the shared CSS. + extraHead = '' + + - ''; -} + ''; + }; +in pkgs.runCommandNoCC "corp-website" {} '' + mkdir $out + cp ${index} $out/index.html +'' -- cgit 1.4.1