Using latest zola with a stable NixOS build

published:

tags: [ #til ]

I just setup zola for writing posts and realized my NixOS on WSL is using an older release. Normally, I'd try to download and build from source, but I wanted to see if there was another way in this case.

After poking around, it looks like I can actually use the latest one from the unstable channel as follows:

nix --extra-experimental-features "nix-command flakes" \
  profile install github:NixOS/nixpkgs/nixpkgs-unstable#zola

This installs the latest version to the profile which is ahead of the system-installed version.

[nixos@nixos:~]$ which -a zola
/home/nixos/.nix-profile/bin/zola
/run/current-system/sw/bin/zola