Testing remote builders

This commit is contained in:
iFargle 2023-10-06 19:41:55 +09:00
parent 4e679d6d55
commit cb0ff1f919
6 changed files with 29 additions and 10 deletions

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

View file

@ -19,6 +19,7 @@
./common/modules/fonts.nix # Font Configs ./common/modules/fonts.nix # Font Configs
./common/modules/networking.nix # Initial Networking configs ./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # NixOS related items ./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}

View file

@ -4,7 +4,6 @@
{ config, lib, pkgs, modulesPath, ... }: { { config, lib, pkgs, modulesPath, ... }: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
##################################################################################### #####################################################################################
# BEGIN hardware config # BEGIN hardware config

View file

@ -35,4 +35,3 @@
}; # partitions }; # partitions
}; # content }; # content
}; # disko.devices.disk.vda }; # disko.devices.disk.vda
} # root

View file

@ -7,6 +7,7 @@
# NixOS Modules # NixOS Modules
./common/modules/networking.nix # Initial Networking configs ./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # NixOS related items ./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}

View file

@ -10,6 +10,7 @@
# NixOS Modules # NixOS Modules
./common/modules/networking.nix # Initial Networking configs ./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # Common NixOS Configurations ./common/modules/nixos.nix # Common NixOS Configurations
./common/modules/remote-builders.nix # Add remote builders
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}