Skip to content
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

Make nixosSystems overridable #94

Closed
legendofmiracles opened this issue Sep 16, 2021 · 4 comments
Closed

Make nixosSystems overridable #94

legendofmiracles opened this issue Sep 16, 2021 · 4 comments

Comments

@legendofmiracles
Copy link

Needed for this: nix-community/nixos-generators#110
And can serve as a temporary workaround for this: NixOS/nixpkgs#101475

@gytis-ivaskevicius
Copy link
Owner

Not sure what is the exact expected result but do you mean this?

  hosts.<hostname>.builder = args: nix-darwin.lib.darwinSystem (removeAttrs args [ "system" ]);

@fufexan
Copy link
Collaborator

fufexan commented Sep 16, 2021

Probably yes, told him the same thing on discord.

@legendofmiracles
Copy link
Author

Not sure what is the exact expected result but do you mean this?

  hosts.<hostname>.builder = args: nix-darwin.lib.darwinSystem (removeAttrs args [ "system" ]);

I tried using builder = nixpkgs.lib.makeOverridable nixpkgs.lib.nixosSystem; as fufexan pointed out, but no dice. Any clue what I'm doing wrong? Must it be a function?

@legendofmiracles
Copy link
Author

nvm i was being dumb, the line from fufexan solved it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants