dotfiles/nixos/distributed-builds.nix

29 lines
791 B
Nix
Raw Normal View History

2023-01-04 08:41:38 +00:00
{ config, pkgs, ... }: {
2020-05-02 14:44:15 +01:00
programs.ssh.extraConfig = ''
2022-12-19 09:09:08 +00:00
Host vpsfree1
HostName vpsfree1
2022-12-19 09:09:08 +00:00
Port 2222
2020-05-02 14:44:15 +01:00
StrictHostKeyChecking=accept-new
'';
2023-01-04 08:41:38 +00:00
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 =
[ "ssh://nix-ssh@bolty.raptor-carp.ts.net" "https://cache.nixos.org/" ];
nix.settings.trusted-public-keys =
[ "cyplodev-store-key:a/+PEufePs7giWqYyRqy+TgUKLMbY+RQuJQu2aUjdl8=" ];
2020-02-22 11:11:10 +00:00
}