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 ]; +}