remote building
This commit is contained in:
parent
946fb550e9
commit
697ba800a6
3 changed files with 27 additions and 0 deletions
|
|
@ -12,6 +12,8 @@
|
|||
cos.winboat.enable = true;
|
||||
cos.docker.enable = true;
|
||||
|
||||
cos.remoteBuild.enable = true;
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
|||
1
cos.nix
1
cos.nix
|
|
@ -5,6 +5,7 @@
|
|||
./wireguard.nix
|
||||
./winboat.nix
|
||||
./docker.nix
|
||||
./remoteBuild.nix
|
||||
"${inputs.home-manager}/nixos"
|
||||
];
|
||||
|
||||
|
|
|
|||
24
remoteBuild.nix
Normal file
24
remoteBuild.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, config, ... }:
|
||||
let cfg = config.cos.remoteBuild; in
|
||||
{
|
||||
options.cos.remoteBuild = {
|
||||
enable = lib.mkEnableOption "Turn on remote builders";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
cos.wireguard.enable = true;
|
||||
|
||||
nix.buildMachines = [{
|
||||
sshUser = "clhickey";
|
||||
hostName = config.cos.wireguard.clientPubOptionsMap.nixnas.ip;
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 4;
|
||||
speedFactor = 1;
|
||||
supportedFeatures = [ "kvm" "nixos-tests" "big-parallel" ];
|
||||
mandatoryFeatures = [];
|
||||
}];
|
||||
nix.distributedBuilds = true;
|
||||
nix.settings.builders-use-substitutes = false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue