added remote build user in box
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
./glance.nix
|
./glance.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./remotebuild_user.nix
|
||||||
../../modules/common/nix.nix
|
../../modules/common/nix.nix
|
||||||
../../modules/raspberrypi.nix
|
../../modules/raspberrypi.nix
|
||||||
../../modules/common/networking.nix
|
../../modules/common/networking.nix
|
||||||
|
|||||||
17
hosts/box/remotebuild_user.nix
Normal file
17
hosts/box/remotebuild_user.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nix.buildMachines = [ {
|
||||||
|
hostName = "builder";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
maxJobs = 1;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
mandatoryFeatues = [ ];
|
||||||
|
} ];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
nix.extraOptions = ''
|
||||||
|
builders-use-substitutes = true
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user