From 58c066387a6bdc61f90c00b48f95f9cc1b4ad4bb Mon Sep 17 00:00:00 2001 From: David Crompton Date: Fri, 8 Aug 2025 23:25:03 -0400 Subject: [PATCH] universedesktop: riscv emulatedsystems --- machines/universedesktop/configuration.nix | 3 +++ machines/universedesktop/riscv.nix | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 machines/universedesktop/riscv.nix diff --git a/machines/universedesktop/configuration.nix b/machines/universedesktop/configuration.nix index bb4235e..8872f9d 100644 --- a/machines/universedesktop/configuration.nix +++ b/machines/universedesktop/configuration.nix @@ -34,6 +34,9 @@ # ccache, y'know for blenders and whatnots ./ccache.nix + + # So we can run riscv 'natively' + ./riscv.nix ]; fileSystems."/home/universe/tmp" = { diff --git a/machines/universedesktop/riscv.nix b/machines/universedesktop/riscv.nix new file mode 100644 index 0000000..7e634dd --- /dev/null +++ b/machines/universedesktop/riscv.nix @@ -0,0 +1,6 @@ +{ config, pkgs, lib, ... }: { + boot.binfmt.emulatedSystems = [ + "riscv64-linux" + ]; + boot.binfmt.preferStaticEmulators = true; +}