nixpkgs-patched not used consistently #2

Open
opened 2025-12-04 01:47:01 +01:00 by schmittlauch · 0 comments
Owner

Right now, the mkNixpkgs-patched sources are only used by home-manager, not by the NixOS system.

  • While inputs.nixpkgs is a flake and thus nixpkgs.lib.mkNixosSystem exists, the patched result is "just" a nixpkgs and does not have that lib
  • overriding nixpkgs.flake.source in config does not work (not even with mkForce) as it is hardcoded in nixpkgs' flake.nix
  • setting nixpkgs.pkgs removes the possibility of setting nixpkgs.config from within the NixOS config

Additionally, there is no way to access the patched nixpkgs to directly build attributes from it like via nix run.

Right now, the `mkNixpkgs-patched` sources are only used by home-manager, not by the NixOS system. - While `inputs.nixpkgs` is a flake and thus `nixpkgs.lib.mkNixosSystem` exists, the patched result is "just" a nixpkgs and does not have that lib - overriding `nixpkgs.flake.source` in config does not work (not even with mkForce) as it is hardcoded in nixpkgs' flake.nix - setting `nixpkgs.pkgs` removes the possibility of setting `nixpkgs.config` from within the NixOS config Additionally, there is no way to access the patched nixpkgs to directly build attributes from it like via `nix run`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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: schmittlauch/nixconfigs#2
No description provided.