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

@ -16,9 +16,10 @@
./common/software/cli/weechat.nix ./common/software/cli/weechat.nix
# NixOS Modules # NixOS Modules
./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

@ -34,5 +34,4 @@
}; # luks.partitions }; # luks.partitions
}; # partitions }; # partitions
}; # content }; # content
}; # disko.devices.disk.vda }; # disko.devices.disk.vda
} # root

View file

@ -5,8 +5,9 @@
./common/services/fail2ban.nix ./common/services/fail2ban.nix
# 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

@ -8,8 +8,9 @@
./common/services/fail2ban.nix ./common/services/fail2ban.nix
# 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}