Initial commit

This commit is contained in:
arne 2022-02-19 10:29:46 +01:00
commit 9667e184fb
8 changed files with 2380 additions and 0 deletions

32
flake.nix Normal file
View file

@ -0,0 +1,32 @@
{
description = "arnes.space dev and build environment";
inputs.nixpkgs.url = github:NixOS/nixpkgs;
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
buildInputs = with pkgs; [
nodejs-16_x
nodePackages.pnpm
];
in {
devShell.${system} = pkgs.mkShell {
inherit buildInputs;
};
defaultPackage.${system} = pkgs.stdenv.mkDerivation {
name = "arnes.space";
src = ./.;
inherit buildInputs;
buildPhase = ''
${pkgs.nodePackages.pnpm}/bin/pnpx @11ty/eleventy --input=content
'';
installPhase = ''
mkdir $out
cp -r _site/* $out
'';
};
};
}