-
Notifications
You must be signed in to change notification settings - Fork 0
Register nvws as builder for work profiles #172
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
Changes from all commits
7c9e88a
a83906e
fa50d40
7a31e79
fda9160
de05e38
e591200
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,44 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lib, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| config, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| username, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hostname, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+7
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| programs.ssh = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| knownHosts = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "nvws.local" = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHfcwsYERqU04xrr6LY0lcbkmlcFuThaURac/AlvP8mR"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extraConfig = | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| let | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| identityFile = "${config.users.users.${username}.home}/.ssh/id_ed25519"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| user = "ihrachyshka"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Host nvws.local | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Hostname nvws.local | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| IdentityFile ${identityFile} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| User ${user} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ''; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nix.buildMachines = lib.optional (hostname != "nvws") { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hostName = "nvws.local"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| system = "x86_64-linux"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| protocol = "ssh-ng"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maxJobs = 4; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| speedFactor = 100; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| supportedFeatures = [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "nixos-test" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "benchmark" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "big-parallel" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "kvm" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+28
to
+40
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nix.buildMachines = lib.optional (hostname != "nvws") { | |
| hostName = "nvws.local"; | |
| system = "x86_64-linux"; | |
| protocol = "ssh-ng"; | |
| maxJobs = 4; | |
| speedFactor = 100; | |
| supportedFeatures = [ | |
| "nixos-test" | |
| "benchmark" | |
| "big-parallel" | |
| "kvm" | |
| ]; | |
| }; | |
| nix.buildMachines = [ | |
| { | |
| hostName = "nvws.local"; | |
| system = "x86_64-linux"; | |
| protocol = "ssh-ng"; | |
| maxJobs = 4; | |
| speedFactor = 100; | |
| supportedFeatures = [ | |
| "nixos-test" | |
| "benchmark" | |
| "big-parallel" | |
| "kvm" | |
| ]; | |
| } | |
| ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| }: | ||
| let | ||
| canUseBuilders = !isWork && (hostname == "mair" || hostname == "mmini" || hostname == "frame"); | ||
| canUseWorkBuilders = isWork && hostname != "nvws"; | ||
| workKeys = [ | ||
| "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHt25mSiJLQjx2JECMuhTZEV6rlrOYk3CT2cUEdXAoYs ihrachyshka@ihrachyshka-mlt" | ||
| ]; | ||
|
|
@@ -29,7 +30,10 @@ in | |
| ] | ||
| ++ lib.optionals canUseBuilders [ | ||
| ./_mixins/community-builders | ||
| ./_mixins/remote-builders | ||
| ./_mixins/personal-builders | ||
| ] | ||
| ++ lib.optionals canUseWorkBuilders [ | ||
| ./_mixins/work-builders | ||
| ]; | ||
|
Comment on lines
10
to
37
|
||
|
|
||
| options.host.isWork = lib.mkOption { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README description states nvws serves as "a remote x86_64-linux builder", but the work-builders configuration in
common/_mixins/work-builders/default.nixshows it supports both "x86_64-linux" and "aarch64-linux" systems. The description should be updated to accurately reflect that it supports both architectures, for example: "Also serves as a remote x86_64-linux and aarch64-linux builder for work machines."