Skip to content

Commit

Permalink
shared/nix: add remote builders config
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Sep 25, 2024
1 parent 9790e2a commit bd6b3eb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions modules/shared/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,40 @@ in
{
inherit (cfg) package;

buildMachines =
let
protocol = "ssh";
sshUser = "khaneliman";
supportedFeatures = [
"benchmark"
"big-parallel"
"nixos-test"
];
in
[
{
inherit protocol sshUser;
hostName = "khanelinix.local";
system = "x86_64-linux";
maxJobs = 16;
speedFactor = 10;
supportedFeatures = supportedFeatures ++ [ "kvm" ];
}
{
inherit protocol sshUser;
hostName = "khanelimac.local";
systems = [
"aarch64-darwin"
"x86_64-darwin"
];
maxJobs = 8;
speedFactor = 5;
supportedFeatures = supportedFeatures ++ [ "apple-virt" ];
}
];

distributedBuilds = true;

gc = {
automatic = true;
options = "--delete-older-than 7d";
Expand Down

0 comments on commit bd6b3eb

Please sign in to comment.