setup distributed builds

This commit is contained in:
Joakim Repomaa
2025-07-23 13:15:50 +03:00
parent 40598d20c7
commit e317f9b0e4
4 changed files with 33 additions and 11 deletions

View File

@@ -23,8 +23,6 @@
kernel.sysctl = {
"vm.max_map_count" = 262144;
};
binfmt.emulatedSystems = [ "aarch64-linux" ];
};
environment.systemPackages = with pkgs; [

View File

@@ -1,6 +1,16 @@
{ ... }:
{
nix = {
distributedBuilds = true;
buildMachines = [
{
hostName = "freun.dev";
maxJobs = 2;
protocol = "ssh";
sshUser = "builder";
system = "aarch64-linux";
}
];
settings = {
experimental-features = [
"nix-command"