From 7ec3c68b93d199d9baea7fcbf840866e779093fc Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 21 Apr 2024 12:24:50 +0900 Subject: [PATCH] Update --- nixos/common/modules/builder.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nixos/common/modules/builder.nix diff --git a/nixos/common/modules/builder.nix b/nixos/common/modules/builder.nix new file mode 100644 index 00000000..227851ba --- /dev/null +++ b/nixos/common/modules/builder.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: { + # FoR remote builds + # see home-manager: bash.nix: rebuild-*-remote + # users.users.${username}.openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/builder-keys.txt ]; + + # For cross-architecture builds + boot.binfmt.emulatedSystems = [ + "aarch64-linux" + "armv7l-linux" + ]; + + environment.systemPackages = with pkgs; [ qemu_kvm ]; +}