nixos-config/sets/buildMachines.nix

34 lines
689 B
Nix

{ config, ... }:
{
nix = {
buildMachines = [
{
hostName = "starlight.manehattan.artem.ist";
protocol = "ssh-ng";
sshUser = "build";
supportedFeatures = [
"kvm"
"big-parallel"
"benchmark"
"nixos-text"
];
system = "x86_64-linux";
maxJobs = 2;
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
home-manager.users.root = {
home.stateVersion = config.system.stateVersion;
programs.ssh = {
enable = true;
userKnownHostsFile = "~/.ssh/known_hosts ${../home/ssh/extra_known_hosts}";
};
};
}