dotfiles/nixos/distributed-builds.nix

28 lines
699 B
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
...
}: {
2024-04-27 11:33:38 +01: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
2024-04-27 11:33:38 +01:00
extraOptions = ''
builders-use-substitutes = true
'';
distributedBuilds = true;
settings.substituters = ["https://cache.nixos.org/" "ssh://nix-ssh@bolty.raptor-carp.ts.net"];
settings.trusted-public-keys = ["cyplodev-store-key:a/+PEufePs7giWqYyRqy+TgUKLMbY+RQuJQu2aUjdl8="];
};
2020-02-22 11:11:10 +00:00
}