Skip to content

Commit

Permalink
nix: configure for remote builders
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Jun 18, 2023
1 parent f53ea4b commit 1501890
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions nix-settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@

# Nix daemon settings that can't be put in `nixConfig`.
{
buildMachines = [
buildMachines = nixpkgs.lib.optional (system == "aarch64-darwin" || system == "x86_64-darwin")
{
hostName = "192.168.1.9";
system = "x86_64-linux";
maxJobs = 12;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
];
sshUser = "moni";
sshKey = "/Users/moni/.ssh/id_ed25519";
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUtyUGRxSWlUckdxbk42ZUFoUnVHbDlaVjJzVXovSVI4NVQzL1R6VVQ0T2wgcm9vdEBzdGFyY3J1aXNlcgo=";
maxJobs = 6;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
};

distributedBuilds = true;

extraOptions = ''
keep-outputs = true
keep-derivations = true
auto-allocate-uids = false
builders-use-substitutes = true
http-connections = 0
''
+
Expand Down

0 comments on commit 1501890

Please sign in to comment.