Add cachix, proper buildMachines config
This commit is contained in:
parent
cad94d0d96
commit
53083fabce
2 changed files with 14 additions and 1 deletions
|
@ -43,6 +43,7 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
android-tools
|
android-tools
|
||||||
bottom
|
bottom
|
||||||
|
cachix
|
||||||
firefox
|
firefox
|
||||||
git
|
git
|
||||||
htop
|
htop
|
||||||
|
|
|
@ -13,8 +13,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.buildMachines = [{
|
||||||
|
hostName = "192.168.5.10";
|
||||||
|
systems = [ "aarch64-linux" "x86_64-linux" ];
|
||||||
|
protocol = "ssh";
|
||||||
|
sshUser = "builder";
|
||||||
|
sshKey = "${config.sops.secrets.builderKey.path}";
|
||||||
|
maxJobs = 12;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatures = [ ];
|
||||||
|
}];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
builders = ssh://builder@192.168.5.10?ssh-key=${config.sops.secrets.builderKey.path}
|
|
||||||
builders-use-substitutes = false
|
builders-use-substitutes = false
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue