Added: Qemu

This commit is contained in:
DerGrumpf 2025-04-07 23:45:34 +02:00
parent 252d028560
commit dc265d2f71
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@
../../modules/file_managers/spacefm.nix
../../modules/python.nix
../../modules/appimage.nix
../../modules/qemu.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
];

9
modules/qemu.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.qemu ];
systemd.tmpfiles.rules = [ "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" ];
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"riscv64-linux"
];
}