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'';
|
||||||
|
}
|
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -34,5 +34,4 @@
|
||||||
}; # luks.partitions
|
}; # luks.partitions
|
||||||
}; # partitions
|
}; # partitions
|
||||||
}; # content
|
}; # content
|
||||||
}; # disko.devices.disk.vda
|
}; # disko.devices.disk.vda
|
||||||
} # root
|
|
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue