Setup remote build for orange pi

This commit is contained in:
Chris Dombroski 2024-04-24 12:29:46 -04:00
parent 856dd7d615
commit b8ee2c631b

View file

@ -82,11 +82,19 @@
system.stateVersion = "23.11"; # Did you read the comment?
system.autoUpgrade.allowReboot = false;
nix.buildMachines = [ {
hostName = "zeus";
systems = [ "x86_64-linux" "aarch64-linux" ];
protocol = "ssh-ng";
sshKey = /root/.ssh/nixremote;
sshUser = "nixremote";
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
}];
nix.distributedBuilds = true;
nix.extraOptions = "builders-use-substitutes = true";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 7d";
nix.optimise.automatic = true;
}