mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
distribute build to ryzen9
This commit is contained in:
parent
6c2c91c076
commit
01930d44ee
2 changed files with 23 additions and 0 deletions
21
features/distributed-build.nix
Normal file
21
features/distributed-build.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
# https://nixos.wiki/wiki/Distributed_build
|
||||
{
|
||||
nix.buildMachines = [{
|
||||
hostName = "ryzen9";
|
||||
system = "x86_64-linux";
|
||||
# if the builder supports building for multiple architectures,
|
||||
# replace the previous line by, e.g.,
|
||||
# systems = ["x86_64-linux" "aarch64-linux"];
|
||||
maxJobs = 16;
|
||||
speedFactor = 3;
|
||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
mandatoryFeatures = [ ];
|
||||
}];
|
||||
nix.distributedBuilds = true;
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
nix.extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
}
|
||||
|
|
@ -58,6 +58,7 @@
|
|||
./hosts/p71.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/distributed-build
|
||||
./features/email
|
||||
./features/desktopish
|
||||
./features/virtualbox.nix
|
||||
|
|
@ -69,6 +70,7 @@
|
|||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/distributed-build.nix
|
||||
./features/email
|
||||
./features/gnome.nix
|
||||
#./features/block-socialmedia.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue