pin nixpkgs registry to pkgs.path via nix.settings.registry#189113
Conversation
…kgs.path via boot.postBootCommands
|
this would be much better done in |
|
@pennae That doesn't solve anything. If you run |
|
ah, mistakenly thought this piece also goes into the installed system. that'll also obviate the |
|
I support the idea. Does not work on my machine:
For the record I'm building a custom iso but I don't think that makes a difference. |
|
@MatthewCroughan nope. Same error. I'd love to help better but I'm out of my depth with the flakes magic. I would like this to be possible other than setting nix.registry.nixpkgs.to = {
type = "path";
path = pkgs.path;
}; |
…kgs.path via nix.settings.registry
6a7eefe to
31dbd4c
Compare
ck3d
left a comment
There was a problem hiding this comment.
LGTM, but please squash the commits
Co-authored-by: Louis Bettens <lourkeur@users.noreply.github.com>
Description of changes
This is a suggestion of something that would be needed in order to allow #189048 to function correctly. Otherwise the registry entry the user's
nixwill generate when faced with a/etc/nixos/flake.nixthat does not contain aninputsattribute, will be ambigious and non-reproducible. We set thenix-channelappropriately inchannel.nixfor this same reason.I provide two commits for doing this, and I'm not sure which approach is better.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes