feat(fun/solves-this): add, deploy to public01
This builds the important website for both snix.systems and its predecessor, tvix.systems. Change-Id: I4cce5595098c804bd4df0cc2ae3c05344138e7b1 Reviewed-on: https://cl.snix.dev/c/snix/+/30502 Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz> Tested-by: besadii
This commit is contained in:
parent
a11099fd1c
commit
e285cbe8cf
6 changed files with 75 additions and 0 deletions
13
fun/solves-this/default.nix
Normal file
13
fun/solves-this/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
mkWebroot = title: imgsrc: pkgs.runCommand "webroot" { } ''
|
||||
mkdir -p $out
|
||||
title="${title}" substituteAll ${./index.html} $out/index.html
|
||||
cp ${imgsrc} $out/solves-this.png
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
tvix = mkWebroot "Tvix solves this" ./tvix_solves_this.png;
|
||||
snix = mkWebroot "Snix solves this" ./snix_solves_this.png;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue