Skip to content

Commit

Permalink
restore compatibility with 24.05
Browse files Browse the repository at this point in the history
addresses
#40 (comment)
  • Loading branch information
Mic92 committed Oct 10, 2024
1 parent ec6ef7d commit 5bba455
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/nixos/24.05-compat.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
lib,
...
}:
{
# 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" ])
];
}
1 change: 1 addition & 0 deletions modules/nixos/facter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
./networking
./system.nix
./virtualisation.nix
./24.05-compat.nix
];

options.facter = with lib; {
Expand Down

0 comments on commit 5bba455

Please sign in to comment.