add vm to build
This commit is contained in:
parent
2e8589c3fa
commit
7156bdc1be
1 changed files with 15 additions and 4 deletions
|
|
@ -1,17 +1,28 @@
|
||||||
{config, pkgs, ...}: {
|
{ config, pkgs, ... }: {
|
||||||
programs.gnupg.agent.enable = true;
|
programs.gnupg.agent.enable = true;
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
nix.package = pkgs.nixFlakes;
|
nix.package = pkgs.nixFlakes;
|
||||||
nix.buildCores = 0; # use all cores
|
nix.buildCores = 0; # use all cores
|
||||||
nix.maxJobs = 10; # use all cores
|
nix.maxJobs = 10; # use all cores
|
||||||
nix.distributedBuilds = true;
|
nix.distributedBuilds = true;
|
||||||
nix.buildMachines = [ {
|
nix.buildMachines = [{
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = [ "x86_64-linux" ];
|
||||||
|
supportedFeatures = [ "kvm" "big-parallel" ];
|
||||||
sshUser = "ragon";
|
sshUser = "ragon";
|
||||||
|
maxJobs = 12;
|
||||||
hostName = "ds9";
|
hostName = "ds9";
|
||||||
sshKey = "/Users/ragon/.ssh/id_ed25519";
|
sshKey = "/Users/ragon/.ssh/id_ed25519";
|
||||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUorQkJYdWZYQUpoeVVIVmZocWxrOFk0ekVLSmJLWGdKUXZzZEU0ODJscFYgcm9vdEBpc28K";
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUorQkJYdWZYQUpoeVVIVmZocWxrOFk0ekVLSmJLWGdKUXZzZEU0ODJscFYgcm9vdEBpc28K";
|
||||||
}];
|
}
|
||||||
|
{
|
||||||
|
systems = [ "aarch64-linux" ];
|
||||||
|
supportedFeatures = [ "kvm" "big-parallel" ];
|
||||||
|
sshUser = "ragon";
|
||||||
|
maxJobs = 8;
|
||||||
|
hostName = "192.168.64.5";
|
||||||
|
sshKey = "/Users/ragon/.ssh/id_ed25519";
|
||||||
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUJMMm94ZEtha01Ka05iTExZK2xnNFkzd25jWnJwVE1sVHRBUWdsazVkVVEgcm9vdEBkYWVkYWx1c3ZtCg==";
|
||||||
|
}];
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
builders-use-substitutes = true
|
builders-use-substitutes = true
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue