Begin testing remote builds

This commit is contained in:
Bun 2025-06-09 15:34:04 -04:00
parent 1a4e5103b2
commit 7aa39a1110
7 changed files with 109 additions and 68 deletions

View file

@ -1,18 +1,19 @@
{ config, lib, ... }:
{
config = lib.mkIf (lib.elem "nvidia" config.services.xserver.videoDrivers) {
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # Framebuffer fixes TTY access
boot.kernelParams = [
"nouveau.config=NvGspRm=1" # Use high power mode for Nouveau
"nvidia_drm.fbdev=1" # Fix framebuffer
];
hardware.nvidia = {
modesetting.enable = true;
nvidiaSettings = false;
open = true;
};
hardware.nvidia = {
modesetting.enable = true;
nvidiaSettings = false;
open = true;
};
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
specialisation.nouveau.configuration.config.services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
} // {
boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];
specialisation = lib.mkIf (lib.elem "nvidia" config.services.xserver.videoDrivers) {
nouveau.configuration.config.services.xserver.videoDrivers = lib.mkForce [ "nouveau" ];
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./channels
./distributed
./gc
./unfree
];
@ -17,6 +18,6 @@
};
};
# Use nixos-rebuild-ng
# Use a newer implementation of nixos-rebuild
system.rebuild.enableNg = true;
}

View file

@ -0,0 +1,33 @@
{ nodes, ... }:
{
nix = {
settings = {
max-jobs = 0;
trusted-users = [ "root" ];
};
distributedBuilds = true;
buildMachines = with nodes; [
{
hostName = midas.config.deployment.targetHost;
system = midas.config.nixpkgs.localSystem.system;
}
{
hostName = kitty.config.deployment.targetHost;
system = kitty.config.nixpkgs.localSystem.system;
}
{
hostName = prophet.config.deployment.targetHost;
system = prophet.config.nixpkgs.localSystem.system;
}
{
hostName = detritus.config.deployment.targetHost;
system = detritus.config.nixpkgs.localSystem.system;
}
{
hostName = elder.config.deployment.targetHost;
system = elder.config.nixpkgs.localSystem.system;
}
];
};
}