Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore compatibility with 24.05
Browse files Browse the repository at this point in the history
addresses
#40 (comment)
Mic92 committed Oct 10, 2024
1 parent ec6ef7d commit bd12063
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
@@ -13,6 +13,7 @@
./networking
./system.nix
./virtualisation.nix
./24.05-compat.nix
];

options.facter = with lib; {

0 comments on commit bd12063

Please sign in to comment.