This commit is contained in:
ryfrd 2026-02-16 15:51:23 +00:00
parent c9179e5bfb
commit fa02698d95
2 changed files with 25 additions and 0 deletions

13
flake.nix Normal file
View file

@ -0,0 +1,13 @@
{
description = "My blog";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
};
outputs =
{ self, nixpkgs }:
{
packages.x86_64-linux.default = nixpkgs.lib.cleanSource (nixpkgs.callPackage ./hub.nix { });
};
}

12
hub.nix Normal file
View file

@ -0,0 +1,12 @@
{ fetchurl, hugo, ... }:
hugo.overrideAttrs (old: {
buildPhase = ''
hugo --minify
'';
installPhase = ''
mkdir -p $out
cp -r public/* $out/
'';
})