this post was submitted on 03 Sep 2025
11 points (100.0% liked)
Nix / NixOS
2569 readers
14 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
While not a "default setting", a thing I always suggest is to avoid setting multiple
substitutersin your config. Instead, settrusted-substitutersandtrusted-public-keys, and then only set the substituters you need in thenixConfig.substitutersattribute of theflake.nixof the project they are needed in (if you're not using flakes,, add a.nix.conffile to your project andexport NIX_USER_CONF_FILES="${NIX_USER_CONF_FILES+$XDG_CONFIG_HOME/nix}:$PWD/.nix.conf"to your.envrc)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.