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

nix/linux-builder: init #684

Merged
merged 1 commit into from
Jul 8, 2023
Merged

Conversation

Enzime
Copy link
Collaborator

@Enzime Enzime commented Jun 7, 2023

This PR adds darwin.builder as a launchd service 🎉

Depends on NixOS/nixpkgs#236389 as it expects darwin.builder to run on port 31022 by default

Copy link
Owner

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This builder package sounds quite magical, very cool stuff!

modules/nix/linux-builder.nix Outdated Show resolved Hide resolved
sshKey = "/etc/nix/builder_ed25519";
system = "${stdenv.hostPlatform.uname.processor}-linux";
supportedFeatures = [ "kvm" "benchmark" "big-parallel" ];
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this completely static? Would be better to retrieve this information from an attribute of the builder package if possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The host key is currently completely static, the host keys are files in the Nixpkgs tree and are not easily overridable, this value comes from the Nixpkgs documentation:

https://github.com/NixOS/nixpkgs/blob/master/doc/builders/special/darwin-builder.section.md?plain=1#L54

@Enzime Enzime force-pushed the add/linux-builder branch 2 times, most recently from 07f6ce8 to 8f96eed Compare July 8, 2023 03:50
@lovesegfault
Copy link
Contributor

@LnL7 @domenkozar Since the upstream PR has landed in nixpkgs, I think this is ready for review/merge :)

Very excited about this! Thanks for pushing it forward @Enzime :)

@domenkozar domenkozar merged commit 4272af4 into LnL7:master Jul 8, 2023
6 checks passed
@Enzime Enzime deleted the add/linux-builder branch July 8, 2023 23:01
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.

4 participants