Testing remote builders
This commit is contained in:
parent
4e679d6d55
commit
cb0ff1f919
6 changed files with 29 additions and 10 deletions
18
nixos/common/modules/remote-builders.nix
Normal file
18
nixos/common/modules/remote-builders.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "nixos-vm-01";
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 4;
|
||||
speedFactor = 2;
|
||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
mandatoryFeatures = [ ];
|
||||
}
|
||||
];
|
||||
nix.distributedBuilds = true;
|
||||
nix.extraOptions = ''builders-use-substitutes = true'';
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
./common/modules/fonts.nix # Font Configs
|
||||
./common/modules/networking.nix # Initial Networking configs
|
||||
./common/modules/nixos.nix # NixOS related items
|
||||
./common/modules/remote-builders.nix # Add remote builders
|
||||
|
||||
./users/${username}
|
||||
./hosts/${hostname}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
|
||||
];
|
||||
#####################################################################################
|
||||
# BEGIN hardware config
|
||||
|
|
|
@ -35,4 +35,3 @@
|
|||
}; # partitions
|
||||
}; # content
|
||||
}; # disko.devices.disk.vda
|
||||
} # root
|
|
@ -7,6 +7,7 @@
|
|||
# NixOS Modules
|
||||
./common/modules/networking.nix # Initial Networking configs
|
||||
./common/modules/nixos.nix # NixOS related items
|
||||
./common/modules/remote-builders.nix # Add remote builders
|
||||
|
||||
./users/${username}
|
||||
./hosts/${hostname}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
# NixOS Modules
|
||||
./common/modules/networking.nix # Initial Networking configs
|
||||
./common/modules/nixos.nix # Common NixOS Configurations
|
||||
./common/modules/remote-builders.nix # Add remote builders
|
||||
|
||||
./users/${username}
|
||||
./hosts/${hostname}
|
||||
|
|
Loading…
Reference in a new issue