When running nix upgrade-nix, set substituters = https://cache.lix.systems #863

Open
opened 2025-06-16 17:25:09 +00:00 by jade · 3 comments
Owner

cache.lix.systems is quite slow, and doesn't contain anything but releases. It should only be enabled in nix upgrade-nix.

Reported by @arianvp

Corresponding issue to avoid adding cache.lix.systems to the default config in the installer: lix-project/lix-installer#64

`cache.lix.systems` is *quite slow*, and doesn't contain anything but releases. It should only be enabled in `nix upgrade-nix`. Reported by @arianvp Corresponding issue to avoid adding `cache.lix.systems` to the default config in the installer: lix-project/lix-installer#64
Owner

I cannot find it in our code anymore, do we still do that?

I cannot find it in our code anymore, do we still do that?
pennae added this to the 2.97 milestone 2025-12-01 14:51:11 +00:00
pennae modified the milestone from 2.97 to 2.95 2025-12-01 14:52:00 +00:00
Owner

Yeah, this should be an issue in the installer:

// Set up our substituters.
settings.insert(
"substituters".to_string(),
"https://cache.nixos.org https://cache.lix.systems".to_string(),
);
settings.insert(
"trusted-public-keys".to_string(),
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=".to_string()
);

Yeah, this should be an issue in the installer: https://git.lix.systems/lix-project/lix-installer/src/commit/81a5d136aaf6b81adc044171f1eb118220d99b9e/src/action/common/place_nix_configuration.rs#L136-L144
Owner

Well, but then we'll need to add the substituter to the setting when running nix upgrade-nix.

Well, but then we'll need to _add_ the substituter to the setting when running `nix upgrade-nix`.
rbt changed title from Fix the cache.lix.systems substituter to not be in the default config to When running nix upgrade-nix, set substituters = https://cache.lix.systems 2025-12-24 20:46:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#863
No description provided.