Adds nix package and overlay

This commit is contained in:
Miguel de la Cruz 2024-01-06 01:01:01 +01:00
parent af68cb30d8
commit 14ae098c18

View file

@ -27,5 +27,22 @@
'
'';
};
packages.${system}.default = pkgs.stdenv.mkDerivation {
name = "ctrlz.es";
src = ./.;
buildInputs = with pkgs; [hugo];
unpackPhase = false;
buildPhase = "hugo";
installPhase = ''
mkdir -p $out/var/lib/ctrlz.es
cp -r public/* $out/var/lib/ctrlz.es/
'';
};
overlays.default = final: prev: {ctrlz = self.packages.${system}.default;};
};
}