From 2616cdcd96e3c87f9244f463610e196b108d933c Mon Sep 17 00:00:00 2001 From: David Crompton Date: Fri, 8 Sep 2023 09:45:30 -0400 Subject: [PATCH] Universedesktop: binfmt riscv64 --- machines/universedesktop/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machines/universedesktop/configuration.nix b/machines/universedesktop/configuration.nix index 55944a5..4cf027f 100644 --- a/machines/universedesktop/configuration.nix +++ b/machines/universedesktop/configuration.nix @@ -5,6 +5,10 @@ { lib, config, pkgs, nixpkgs, ... }: { nix.settings.auto-optimise-store = true; nix.registry.nixpkgs.flake = nixpkgs; + + # Allow user-mode qemu for running riscv64 binaries + boot.binfmt.emulatedSystems = [ "riscv64-linux" ]; + imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix