this post was submitted on 03 Sep 2025
10 points (100.0% liked)

Nix / NixOS

2484 readers
4 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Any suggested changes since this was published a year prior?

all 5 comments
sorted by: hot top controversial new old
[–] patrick@lemmy.bestiver.se 3 points 1 month ago (1 children)

Author here! Actually the first time I’ve ever seen anyone (other than myself) share a post of mine.

If there are any suggestions I’m happy to update it, as noted in the post I’ve had a few people reach out with improvements over the years. It seems like this post in particular is liked the search engines.

[–] ruffsl@programming.dev 2 points 1 month ago

Hello Patrick! Thanks for the writeup; gradually incorporating it into my config.

BTW, I recall reading a PR you started on fixing the fallback from failing substituters? This may be of interest to you:

[–] balsoft@lemmy.ml 1 points 1 month ago* (last edited 1 month ago) (1 children)

While not a "default setting", a thing I always suggest is to avoid setting multiple substituters in your config. Instead, set trusted-substituters and trusted-public-keys, and then only set the substituters you need in the nixConfig.substituters attribute of the flake.nix of the project they are needed in (if you're not using flakes,, add a .nix.conf file to your project and export NIX_USER_CONF_FILES="${NIX_USER_CONF_FILES+$XDG_CONFIG_HOME/nix}:$PWD/.nix.conf" to your .envrc)

[–] ruffsl@programming.dev 1 points 1 month ago

That's a good one. Definitely seems selecting substituters closer to runtime is more flexible. Especially when the system may be roaming across networks like a laptop that may move outside your home LAN that links to your local desktop cache.