hosts/modules: put builder back in a separate file
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -38,6 +38,7 @@ in
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./remilia
|
./remilia
|
||||||
|
./modules/x86builder.nix
|
||||||
inputs.mailserver.nixosModules.mailserver
|
inputs.mailserver.nixosModules.mailserver
|
||||||
{ nixpkgs.pkgs = self.legacyPackages.${system}; }
|
{ nixpkgs.pkgs = self.legacyPackages.${system}; }
|
||||||
]
|
]
|
||||||
|
@@ -39,16 +39,7 @@
|
|||||||
package = pkgs.nixUnstable;
|
package = pkgs.nixUnstable;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
builders-use-substitutes = true
|
|
||||||
'';
|
'';
|
||||||
settings.trusted-users = [ "root" ];
|
settings.trusted-users = [ "root" "spark" ];
|
||||||
buildMachines = [{
|
|
||||||
hostName = "satori";
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
||||||
maxJobs = 4;
|
|
||||||
speedFactor = 2;
|
|
||||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
||||||
}];
|
|
||||||
distributedBuilds = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
16
hosts/modules/x86builder.nix
Normal file
16
hosts/modules/x86builder.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
nix = {
|
||||||
|
extraOptions = ''
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
buildMachines = [{
|
||||||
|
hostName = "satori";
|
||||||
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
|
maxJobs = 4;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
}];
|
||||||
|
distributedBuilds = true;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user