fix distributed setup local
This commit is contained in:
commit
e62f2e67ac
|
@ -11,8 +11,7 @@ in
|
||||||
|
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
{
|
{
|
||||||
hostName = remoteMachineIp;
|
hostName = "remotebuild@${remoteMachineIp}";
|
||||||
sshUser = "remotebuild";
|
|
||||||
speedFactor = 1;
|
speedFactor = 1;
|
||||||
maxJobs = 10;
|
maxJobs = 10;
|
||||||
sshKey = "/root/.ssh/remotebuild";
|
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 = {
|
sops.secrets = {
|
||||||
"ssh_keys/root/remotebuild" = {
|
"ssh_keys/root/remotebuild" = {
|
||||||
path = "/root/.ssh/remotebuild";
|
path = "/root/.ssh/remotebuild";
|
||||||
|
|
|
@ -59,8 +59,12 @@ in {
|
||||||
|
|
||||||
../common/optional/restic-backup.nix
|
../common/optional/restic-backup.nix
|
||||||
../common/optional/nixos-containers/backup-server.nix
|
../common/optional/nixos-containers/backup-server.nix
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
# Build nix derivations on remote machine
|
# Build nix derivations on remote machine
|
||||||
|
=======
|
||||||
|
|
||||||
|
>>>>>>> distributed-builds
|
||||||
../common/optional/distributed_builds/local-machine.nix
|
../common/optional/distributed_builds/local-machine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue