diff --git a/flake.nix b/flake.nix index ea4ce18..5a5a666 100644 --- a/flake.nix +++ b/flake.nix @@ -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;}; }; }