Initial commit

This commit is contained in:
2023-01-24 18:20:04 +01:00
commit 58d94ad34a
18 changed files with 405 additions and 0 deletions

21
pkgs/page.nix Normal file
View File

@@ -0,0 +1,21 @@
{
jekyll, tailwindWithTypography
, stdenv
}:
stdenv.mkDerivation {
pname = "moxxyv2-website";
version = "0.1.0";
src = ./../.;
buildPhase = ''
${jekyll}/bin/jekyll build
cp -r ./assets _site/assets
${tailwindWithTypography}/bin/tailwindcss --input ./input.css --output ./_site/assets/css/index.css
'';
installPhase = ''
mkdir -p $out/var/www/
cp -vr _site/ $out/var/www/website
'';
}