home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c9c2e3b9957fa3d00f1630b718e09be0560b7303
parent 94b02ac82d1a668d5fe5355a59ef4f896967aa39
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 16 Dec 2020 16:23:16 +0100

systems: experiment with distributed builds

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hosts/naruhodo.nix | 20+++++++++++++++++++-
Msystems/hosts/wakasu.nix | 13++++++++++++-
2 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/systems/hosts/naruhodo.nix b/systems/hosts/naruhodo.nix @@ -59,9 +59,27 @@ in extraModprobeConfig = '' options v4l2loopback exclusive_caps=1 ''; - binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; + binfmt.emulatedSystems = [ + "armv6l-linux" + "armv7l-linux" + "aarch64-linux" + ]; }; + nix.distributedBuilds = true; + nix.buildMachines = [{ + hostName = "192.168.1.77"; + maxJobs = 8; + sshUser = "builder"; + sshKey = "/etc/nixos/secrets/builder"; + systems = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" "armv6l-linux" ]; + supportedFeatures = [ + "big-parallel" + "kvm" + "nixos-test" + ]; + }]; + services.hardware.bolt.enable = true; profiles = { desktop.i3.enable = true; diff --git a/systems/hosts/wakasu.nix b/systems/hosts/wakasu.nix @@ -45,7 +45,18 @@ in }; }; */ - boot.binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; + boot.binfmt.emulatedSystems = [ + "armv6l-linux" + "armv7l-linux" + "aarch64-linux" + ]; + + users.extraUsers.builder = { + isNormalUser = true; + uid = 1018; + extraGroups = [ ]; + openssh.authorizedKeys.keys = [ (builtins.readFile "/etc/nixos/secrets/builder.pub") ]; + }; fileSystems."/" = { device = "/dev/disk/by-uuid/6590b73d-72a4-4356-94b1-f56ac45c976d";