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

tools.sh: apply configuration twice to pickup nix.* values #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colemickens
Copy link

Fixes #14.

This will allow the user to supply a user data that set custom nix options (like a NIX_PATH to a specific nixpkgs and setting nix.buildCores = 0 on a beefy Packet EPYC machine).

It feels hacky, but also not that bad and solves a need without any heavy lifting. Please note, I don't have PXE infra setup to test this, and I'm making assumptions about nixos-install operating similarly to nixos-rebuild switch... hopefully you can validate @grahamc.

Fixes grahamc#14.

This will allow the user to supply a user data that set custom nix options (like a NIX_PATH to a specific nixpkgs and setting `nix.buildCores = 0` on a beefy Packet EPYC machine).

It feels hacky, but also not that bad and solves a need without any heavy lifting. Please note, I don't have PXE infra setup to test this, and I'm making assumptions about `nixos-install` operating similarly to `nixos-rebuild switch`... hopefully you can validate @grahamc.
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

Successfully merging this pull request may close these issues.

None yet

1 participant