hosts/modules: put builder back in a separate file

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-06-24 16:25:48 +05:30
parent f88702525b
commit 8f7781f293
7 changed files with 40 additions and 32 deletions

View File

@@ -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}; }
] ]

View File

@@ -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;
}; };
} }

View 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;
};
}