You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flake evaluation is designed not to depend on external factors, such as which host is evaluating the flake.
I would recommend something like NixOS or home-manager to configure host environments. These each have their own ways of initializing the pkgs module argument.
Alternatively, if you do not want to manage significant portions of your host environment declaratively, you could declare the relevant packages for each host using distinct package names. Instead of just _module.args.pkgs, you could also add _module.args.pkgs2 or any other name. pkgs is only "special" because it is implicitly expected by some modules. flake-parts itself does not come with such an expectation though.
@nuusers In your case, you won't specify those host-specific overlays under perSystem though? You can specify overlays for a NixOS system as part of the configuration:
nixpkgs.lib.nixosSystem{inheritsystemspecialArgs;modules=[{# Specify overlays for the systemnixpkgs.overlays=overlays;}...];}
I have two overlays, two hosts.
Host 1 needs to use overlay1 Host 2 needs to use overlay1 overlay2.
The text was updated successfully, but these errors were encountered: