Nixos use old version software
Contents
NixOS users often face situations where the latest software versions have issues, but the NixOS channel only offers the fixed versions. Here’s how to use an older version of software:
According to the blog post How to use old versions of software in NixOS, you can follow these steps to use an older software version:
Search for the old version of the software
Use https://lazamar.co.uk/nix-versions/
to search for old packages.
For example, to install hugo
version v0.60.0
, search for hugo
and find the desired version, which is here.
|
|
Add the above code to your configuration.nix
:
|
|
Then refer to myPkg
in environment.systemPackages
of configuration.nix
:
|
|
Run nixos-rebuild switch
to apply the changes.
Author xiantang
LastMod 2024-12-01 (fa698b83)