llakala / nixos

My NixOS config
3 stars 1 forks source link

Update redirector to always use latest version of nix.dev #19

Closed llakala closed 2 months ago

llakala commented 2 months ago

nix.dev has multiple versions of the Nix reference manual, depending on the version. Some older links use a specific version, which is unhelpful for finding the latest info on something. To fix this, links should be redirected to the latest stable version. Here's how this can be done:

Old link:

https://nix.dev/manual/nix/2.12/installation/multi-user

New link:

https://nix.dev/manual/nix/latest/installation/multi-user

Ideally, this would automatically fail if the new link didn't exist. I'm not sure if Redirector supports this, though.

llakala commented 2 months ago

Done with this file: Redirector.json