2024-11-15 10:20:32 +01:00
|
|
|
{ config, ... }:
|
2024-06-29 14:02:04 +02:00
|
|
|
{
|
|
|
|
# TODO: install public key on tsuki declaratively
|
|
|
|
sops.secrets = {
|
|
|
|
"ssh/nix-builders/tsuki/key" = { sopsFile = ./../../../secrets/common.yaml; };
|
|
|
|
"ssh/nix-builders/tsuki/pub" = { sopsFile = ./../../../secrets/common.yaml; };
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.buildMachines = [{
|
|
|
|
hostName = "nix-builder-tsukir";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
speedFactor = 2;
|
|
|
|
maxJobs = 8;
|
|
|
|
supportedFeatures = [
|
|
|
|
"nixos-test"
|
|
|
|
"benchmark"
|
|
|
|
"big-paralell"
|
|
|
|
];
|
|
|
|
mandatoryFeatures = [ ];
|
|
|
|
sshUser = "nix-ssh";
|
|
|
|
sshKey = config.sops.secrets."ssh/nix-builders/tsuki/key".path;
|
|
|
|
}];
|
|
|
|
|
2024-08-12 17:36:13 +02:00
|
|
|
programs.ssh = {
|
|
|
|
extraConfig = ''
|
|
|
|
Host nix-builder-tsukir
|
|
|
|
HostName gingakei.loginto.me
|
2024-11-15 10:20:32 +01:00
|
|
|
Port 45497
|
|
|
|
IdentityFile ${config.sops.secrets."ssh/nix-builders/tsuki/key".path}
|
2024-08-12 17:36:13 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
# knownHosts.tsukir = {
|
|
|
|
# hostNames = [ "nani.wtf" "gingakei.loginto.me" ];
|
|
|
|
# # publicKeyFile = config.sops.secrets."ssh/nix-builders/tsuki/pub".path;
|
|
|
|
# publicKeyFile = "/var/keys/tsuki_nix-builder.pub";
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
}
|