dotfiles/nixos/distributed-builds.nix

22 lines
653 B
Nix
Raw Normal View History

2023-01-04 08:41:38 +00:00
{ config, pkgs, ... }: {
nix.buildMachines = [{
hostName = "bolty";
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
systems = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
maxJobs = 2;
speedFactor = 1;
supportedFeatures = [ "kvm" "big-parallel" ];
mandatoryFeatures = [ ];
}];
2020-02-22 11:11:10 +00:00
nix.extraOptions = ''
2021-11-22 19:32:26 +00:00
builders-use-substitutes = true
2020-02-22 11:11:10 +00:00
'';
nix.distributedBuilds = true;
2023-01-04 08:41:38 +00:00
nix.settings.substituters =
2023-01-04 09:51:22 +00:00
[ "https://cache.nixos.org/" "ssh://nix-ssh@bolty.raptor-carp.ts.net" ];
2023-01-04 08:41:38 +00:00
nix.settings.trusted-public-keys =
[ "cyplodev-store-key:a/+PEufePs7giWqYyRqy+TgUKLMbY+RQuJQu2aUjdl8=" ];
2020-02-22 11:11:10 +00:00
}