added remote builders and virtualisation

This commit is contained in:
caleb 2024-03-12 09:29:45 -04:00
parent fa52e5f789
commit 0e60a07fd2

View File

@ -8,6 +8,7 @@
./application-configuration.nix ./application-configuration.nix
./software-development-configuration.nix ./software-development-configuration.nix
./school-configuration.nix ./school-configuration.nix
./virtualisation-configuration.nix
]; ];
# Enable networking and bluetooth # Enable networking and bluetooth
@ -92,7 +93,7 @@
users.users.caleb = { users.users.caleb = {
isNormalUser = true; isNormalUser = true;
description = "caleb"; description = "caleb";
extraGroups = [ "networkmanager" "wheel" "usrp" ]; extraGroups = [ "networkmanager" "wheel" ];
hashedPassword = "$y$j9T$v6EDyPW8C/K.Th4xg8MHL/$tA67k6U0kLtafTNNW2DM7j.xObjPSaZFQ4e/beBX7g2"; hashedPassword = "$y$j9T$v6EDyPW8C/K.Th4xg8MHL/$tA67k6U0kLtafTNNW2DM7j.xObjPSaZFQ4e/beBX7g2";
packages = with pkgs; packages = with pkgs;
[ [
@ -143,15 +144,32 @@
services.printing.drivers = [ pkgs.brlaser ]; services.printing.drivers = [ pkgs.brlaser ];
# remote build # remote build
nix.buildMachines = [{ nix.buildMachines = [
{
hostName = "talos";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 4;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
{
hostName = "january"; hostName = "january";
system = "x86_64-linux"; system = "x86_64-linux";
protocol = "ssh-ng"; protocol = "ssh-ng";
maxJobs = 1; speedFactor = 3;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
{
hostName = "pubnix";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 2; speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ]; mandatoryFeatures = [ ];
}]; }
];
nix.distributedBuilds = true; nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours # optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = '' nix.extraOptions = ''