2024-06-29 14:02:04 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
sops.secrets."ssh/nix-builders/bob/key" = { sopsFile = ./../../../secrets/common.yaml; };
|
|
|
|
|
|
|
|
nix.buildMachines = [{
|
|
|
|
# Login details configured in ssh module in nix-secrets
|
|
|
|
hostName = "nix-builder-bob";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
speedFactor = 5;
|
|
|
|
maxJobs = 24;
|
|
|
|
supportedFeatures = [
|
|
|
|
"nixos-test"
|
|
|
|
"benchmark"
|
|
|
|
"big-paralell"
|
|
|
|
];
|
|
|
|
mandatoryFeatures = [ ];
|
|
|
|
# sshUser = secrets.ssh.users.pvv.normalUser;
|
|
|
|
# sshKey = config.sops.secrets."ssh/nix-builders/bob/key".path;
|
|
|
|
}];
|
|
|
|
|
2024-08-12 17:36:13 +02:00
|
|
|
programs.ssh = {
|
|
|
|
extraConfig = ''
|
|
|
|
Host nix-builder-bob
|
|
|
|
HostName bob.pvv.ntnu.no
|
|
|
|
ProxyJump nix-builder-isvegg
|
|
|
|
User oysteikt
|
|
|
|
IdentityFile ${config.sops.secrets."ssh/nix-builders/bob/key".path}
|
|
|
|
'';
|
|
|
|
|
|
|
|
knownHosts.bob = {
|
|
|
|
hostNames = [
|
|
|
|
"bob.pvv.ntnu.no"
|
|
|
|
"bob.pvv.org"
|
|
|
|
];
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGJSgh20qDIYEXiK4MUZhc879dJIyH0K/s0RZ+9wFI0F";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|