about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-06-25 13:29:06 +0000
committerAlyssa Ross <hi@alyssa.is>2023-06-26 08:58:20 +0000
commit3959a7bef56c7ee9caefb04a5722569460b0a36b (patch)
tree9ba7eb2806b414936b98e89e3593846fafa7c7d4 /nixos/lib
parente3cbd650f503ffe059cac271b20e47fd6afebcc1 (diff)
nixos/qemu: set qemuSerialDevice for loongarch64
Link: https://www.qemu.org/docs/master/system/loongarch/virt.html#boot-options
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/qemu-common.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/qemu-common.nix b/nixos/lib/qemu-common.nix
index a8ed27dd60919..4fff2e0a6f15e 100644
--- a/nixos/lib/qemu-common.nix
+++ b/nixos/lib/qemu-common.nix
@@ -19,7 +19,7 @@ rec {
     ];
 
   qemuSerialDevice =
-    if with pkgs.stdenv.hostPlatform; isx86 || isMips64 || isRiscV then "ttyS0"
+    if with pkgs.stdenv.hostPlatform; isx86 || isLoongArch64 || isMips64 || isRiscV then "ttyS0"
     else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0"
     else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";