nixos-config/sets/buildMachines.nix

27 lines
596 B
Nix
Raw Normal View History

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