mykiwi/mykiwi.blogpublic Fork 0
bf3cf90170888299b6939d18c034327377a52922
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

nix-flakes-for-reproducible-builds.md · 27 lines · 775 Bmarkdown Blame HistoryRaw
Add the first three posts bf3cf90 Romain Gautier 17h ago1+++
2date = '2026-02-14T10:30:00+01:00'
3draft = false
4title = 'Nix Flakes for Reproducible Builds'
5summary = 'Notes on pinning tool versions with Nix flakes.'
6+++
7
8Nix flakes make it easy to pin exact versions of dependencies, like the Hugo
9binary used to build this blog, so every contributor gets identical builds
10without relying on a system-wide package manager.
11
12## Pinning Hugo
13
14The `flake.nix` in this repo pins an exact Hugo release through
15`nixpkgs-multiverse`:
16
17```nix
18hugo = mv.version "hugo" "0.166.0";
19```
20
21Running `nix develop` drops that version onto `PATH`, and `nix build` uses
22the same pin to produce the site.
23
24{{% alert "tip" %}}
25**Tip:** Pin the version once, in one file, and every machine that runs
26`nix build` gets byte-identical output.
27{{% /alert %}}