Setup remote build for orange pi
This commit is contained in:
parent
856dd7d615
commit
af78b7151e
1 changed files with 10 additions and 2 deletions
|
@ -82,11 +82,19 @@
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
system.autoUpgrade.allowReboot = false;
|
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.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
nix.gc.options = "--delete-older-than 7d";
|
nix.gc.options = "--delete-older-than 7d";
|
||||||
nix.optimise.automatic = true;
|
nix.optimise.automatic = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue