summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-10-01 04:31:19 -0700
committerAlyssa Ross <hi@alyssa.is>2022-10-04 07:48:12 +0000
commitc46bdcbaf299064ca935438b6704a2f99394966c (patch)
tree69e797bcd781b750190a87abd573ac56d4ea38a4 /nixos
parent533ca3db3cc6a1fd0645d9e800fc836a0f31b290 (diff)
nixos/lib/qemu-common.nix: set qemuSerialDevice for isMips64
Diffstat (limited to 'nixos')
-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 3f4d674e9a93..a8ed27dd6091 100644
--- a/nixos/lib/qemu-common.nix
+++ b/nixos/lib/qemu-common.nix
@@ -19,7 +19,7 @@ rec {
];
qemuSerialDevice =
- if pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isRiscV then "ttyS0"
+ if with pkgs.stdenv.hostPlatform; isx86 || 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}'";