Skip to content

enhance(nix): Cachix#1400

Open
Malix-Labs wants to merge 1 commit intohyprwm:mainfrom
Malix-Labs:patch-1
Open

enhance(nix): Cachix#1400
Malix-Labs wants to merge 1 commit intohyprwm:mainfrom
Malix-Labs:patch-1

Conversation

@Malix-Labs
Copy link

@Malix-Labs Malix-Labs commented Mar 2, 2026

general enhancement, using the flake.nix's nixConfig would scope the binary cache to the flake and doesn't require to enable it prior to adding the flake input

hyprwm/Hyprland#13519 would also make it automatic

References

@fufexan
Copy link
Member

fufexan commented Mar 3, 2026

nixConfig does not propagate to NixOS. It is only useful when building packages or system configs from a flake .

That being said, people that don't use flakes still need to use nix.settings to set the substituters, as well as anyone building their config in any other way than using flakes (e.g. nix-build, nix repl).

It might be good to mention as a one-off change that will be reverted after hyprland is installed and the substituters set, but even then it might confuse new users.

@Malix-Labs
Copy link
Author

Malix-Labs commented Mar 3, 2026

nixConfig does not propagate to NixOS

In which case are you confident it's the case?

My original goal was to document hyprwm/Hyprland#13519

people that don't use flakes still need to use nix.settings to set the substituters

That is true;
I was under the impression Hyprland only supported nixpkgs and flakes to be used in Nix/OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants