Troubleshooting

Prerequisites

See Nix Prerequisites

Red text in the output

This is not a problem. Just read the text and answer. When asked like:

do you want to allow configuration setting 'extra-trusted-substituters' to be set to 'https://haskell-language-server.cachix.org https://nix-community.cachix.org https://cache.iog.io https://deemp.cachix.org' (y/N)?

answer y.

And then, when asked

do you want to permanently mark this value as trusted (y/N)? 

answer y again. This is to let you use the binary caches listed by the flake.

VSCodium troubleshooting

See VSCodium troubleshooting

Substituters and keys

To provide binary caches, flake.nix files specify nixConfig.extra-trusted-substituters. If you try, e.g., nix develop, and Nix unsuccessfully tries to download from a cache several times, this cache has probably failed. Comment out the lines containing its URL address in extra-trusted-substituters.

Repair a derivation

Repair a derivation - manual

Alternative steps:

  1. Assumptions:
    • current working directory contains flake.nix
    • your corrupt derivation is available inside this flake.nix by . name your-corrupt-derivation
  2. Set packages.default = your-corrupt-derivation in this flake.nix
  3. Run nix store repair .#

Locales

See Locales