forked from nix-community/NixOS-WSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path24.05-compat.nix
13 lines (12 loc) · 906 Bytes
/
24.05-compat.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
{ lib, ... }: {
# Copied from https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/24.05-compat.nix
# Backward-compat for 24.05, can be removed after we drop 24.05 support
imports = lib.optionals (lib.versionOlder lib.version "24.11pre") [
(lib.mkAliasOptionModule [ "hardware" "graphics" "enable" ] [ "hardware" "opengl" "enable" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "extraPackages" ] [ "hardware" "opengl" "extraPackages" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "extraPackages32" ] [ "hardware" "opengl" "extraPackages32" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "enable32Bit" ] [ "hardware" "opengl" "driSupport32Bit" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "package" ] [ "hardware" "opengl" "package" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "package32" ] [ "hardware" "opengl" "package32" ])
];
}