From 8b1cd0960b7c7396a9087f51d4b364cbe7ac7e96 Mon Sep 17 00:00:00 2001 From: Cryolitia PukNgae Date: Mon, 11 Nov 2024 02:17:55 +0800 Subject: [PATCH] nixos/graphics: clarify assertion message for enable32Bit configuration The original message is really confusing, when you wrongly enable it on aarch64. --- nixos/modules/hardware/graphics.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/hardware/graphics.nix b/nixos/modules/hardware/graphics.nix index 2d6b377ae5fb..10a72b423e83 100644 --- a/nixos/modules/hardware/graphics.nix +++ b/nixos/modules/hardware/graphics.nix @@ -101,7 +101,7 @@ in assertions = [ { assertion = cfg.enable32Bit -> pkgs.stdenv.hostPlatform.isx86_64; - message = "`hardware.graphics.enable32Bit` only makes sense on a 64-bit system."; + message = "`hardware.graphics.enable32Bit` is only supported on an x86_64 system."; } { assertion = cfg.enable32Bit -> (config.boot.kernelPackages.kernel.features.ia32Emulation or false);