Skip to content

Commit

Permalink
fix 24.05 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 10, 2024
1 parent ec6ef7d commit 8f276ba
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions modules/nixos/graphics.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ in
};
};

config = lib.mkIf cfg.enable {
hardware.graphics.enable = lib.mkDefault true;
boot.initrd.kernelModules = config.facter.detected.boot.graphics.kernelModules;
};
config = lib.mkIf cfg.enable (
{
boot.initrd.kernelModules = config.facter.detected.boot.graphics.kernelModules;
}
// (
if lib.versionOlder lib.version "24.11pre" then
{ hardware.opengl.enable = lib.mkDefault true; }
else
{ hardware.graphics.enable = lib.mkDefault true; }
)
);
}

0 comments on commit 8f276ba

Please sign in to comment.