Allow to provide an `--inputs-from` argument when using flakes
This allows pinning the nixpkgs to use when there exist a flake for the current system (for example when using home-manager).
I realized it would be useful to me to reuse my home-manager config's nixpkgs instead of downloading a new one anytime the cache expires.
My rust is not in top shape, so I'm definitely open to comments on the style of the code (or in fixes, if you have some in mind).
That sounds like a good idea, but I'm not aware of ways to use flakes as channels. Do you have something specific in mind?
This allows pinning the nixpkgs to use when there exist a flake for the current system (for example when using home-manager).
I realized it would be useful to me to reuse my home-manager config's nixpkgs instead of downloading a new one anytime the cache expires.
this is already possible with
nix = {
registry = {
nixpkgs.flake = { outPath = lib.cleanSource "${pkgs.path}"; };
};
};
in nixos and home-manager https://nix-community.github.io/home-manager/options.html#opt-nix.registry