If you think flake registry is a crap, just add this to your system configuration:
{ inputs, ... }:
{
nix = {
settings.flake-registry = builtins.toFile "global-registry.json" (
builtins.toJSON { "flakes" = [ ]; "version" = 2; }
);
registry = (
{
pkgs.flake = inputs.self; # recommended
} // lib.mapAttrs (names: flakes: { flake = flakes; }) inputs
);
};
}
Then next time you can use any items of inputs in /etc/nixos/flake.nix
(and they are pinned to the same version in the flake.lock
).
It's recommended to add a registry pointing to your overlayed packages (with your own packages merged) so that you can easily access them from the command line. You also have to point legacyPackages
to your final nixpkgs.