1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

nixos/graphics: clarify assertion message for enable32Bit configuration

The original message is really confusing, when you wrongly enable it on aarch64.
This commit is contained in:
Cryolitia PukNgae 2024-11-11 02:17:55 +08:00
parent 76612b17c0
commit 8b1cd0960b
No known key found for this signature in database
GPG key ID: 3E5D1772FC8A8EDD

View file

@ -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);