From 76119aef0f8c6e0559e4ad71207c6d898a489e3e Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Fri, 27 May 2022 13:38:34 +0200 Subject: [PATCH] Add support for remote builds --- common.nix | 1 + machines/thor/hardware-configuration.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/common.nix b/common.nix index 55a0f0e..e5d72f1 100644 --- a/common.nix +++ b/common.nix @@ -6,6 +6,7 @@ imports = [ agenix.nixosModule ]; nix = { + trustedUsers = [ "riley" ]; optimise.automatic = true; extraOptions = '' experimental-features = nix-command flakes diff --git a/machines/thor/hardware-configuration.nix b/machines/thor/hardware-configuration.nix index 8dea2d2..7f3c351 100644 --- a/machines/thor/hardware-configuration.nix +++ b/machines/thor/hardware-configuration.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; fileSystems."/" = { device = "/dev/disk/by-uuid/f3cdd2ab-62ba-4d72-8a28-b3adc0ec3997";