nixos/opengl: assert 32bit emu support if 32bit support is enabled
See https://github.com/NixOS/nixpkgs/issues/51097
This commit is contained in:
parent
6eea9ac868
commit
ab070d1b0b
@ -124,10 +124,14 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
assertions = lib.singleton {
|
assertions = [
|
||||||
assertion = cfg.driSupport32Bit -> pkgs.stdenv.isx86_64;
|
{ assertion = cfg.driSupport32Bit -> pkgs.stdenv.isx86_64;
|
||||||
message = "Option driSupport32Bit only makes sense on a 64-bit system.";
|
message = "Option driSupport32Bit only makes sense on a 64-bit system.";
|
||||||
};
|
}
|
||||||
|
{ assertion = cfg.driSupport32Bit -> (config.boot.kernelPackages.kernel.features.ia32Emulation or false);
|
||||||
|
message = "Option driSupport32Bit requires a kernel that supports 32bit emulation";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"L+ /run/opengl-driver - - - - ${package}"
|
"L+ /run/opengl-driver - - - - ${package}"
|
||||||
|
Loading…
Reference in New Issue
Block a user