-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure multiple overlays to different hosts? #139
Comments
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 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 |
@nuusers In your case, you won't specify those host-specific overlays under nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
{
# Specify overlays for the system
nixpkgs.overlays = overlays;
}
...
];
} |
@roberth Sorry I lost my account, here is my solution: |
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: