fix distributed setup local

This commit is contained in:
Sam 2025-01-08 20:02:59 +00:00
commit e62f2e67ac
2 changed files with 13 additions and 2 deletions

View File

@ -11,8 +11,7 @@ in
nix.buildMachines = [
{
hostName = remoteMachineIp;
sshUser = "remotebuild";
hostName = "remotebuild@${remoteMachineIp}";
speedFactor = 1;
maxJobs = 10;
sshKey = "/root/.ssh/remotebuild";
@ -28,6 +27,14 @@ in
# };
# };
programs.ssh.extraConfig = ''
Host ${remoteMachineIp}
Port 22
User remotebuild
IdentitiesOnly yes
IdentityFile /root/.ssh/remotebuild
'';
sops.secrets = {
"ssh_keys/root/remotebuild" = {
path = "/root/.ssh/remotebuild";

View File

@ -59,8 +59,12 @@ in {
../common/optional/restic-backup.nix
../common/optional/nixos-containers/backup-server.nix
<<<<<<< HEAD
# Build nix derivations on remote machine
=======
>>>>>>> distributed-builds
../common/optional/distributed_builds/local-machine.nix
];