nixos-config/modules/hardware/remoteClient.nix

35 lines
961 B
Nix
Raw Normal View History

2023-09-23 21:19:53 +02:00
{ config, lib, pkgs, ... }:
{
nix = {
distributedBuilds = true;
buildMachines = [ {
hostName = "hades";
system = "x86_64-linux";
supportedFeatures = [ "kvm" "big-parallel" ];
sshUser = "nixremote";
2023-09-23 21:19:53 +02:00
sshKey = config.age.secrets."keys/nixremote".path;
maxJobs = 1;
2024-03-03 15:17:58 +01:00
speedFactor = 4;
2023-09-23 21:19:53 +02:00
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUVnbld5UVVVYSt2Y0hBS3g2ZWRiVGdxVzhwaCtNQ2lTNmZVd1lqWWNTK28gcm9vdEBoYWRlcwo=%";
protocol = "ssh-ng";
} ];
settings = {
trusted-public-keys = [
2024-03-03 15:17:58 +01:00
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hades-builder:AFdPgi6Qq/yKqc2V2imgzMikEkVEFCrDaHyAmOJ3MII="
];
substituters = [
2024-03-03 15:17:58 +01:00
"https://cache.nixos.org"
2024-03-09 12:08:44 +01:00
"ssh-ng://nixremote@hades.home.opel-online.de"
];
};
2023-09-23 21:19:53 +02:00
};
age.secrets."keys/nixremote" = {
file = ../../secrets/keys/nixremote.age;
2023-09-23 21:19:53 +02:00
owner = "root";
};
}