Skip to content

Commit

Permalink
Merge pull request #45 from numtide/nixos-24.05-compat
Browse files Browse the repository at this point in the history
fix 24.05 compat
  • Loading branch information
brianmcgee authored Oct 10, 2024
2 parents ec6ef7d + 8f276ba commit d2a8df4
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 d2a8df4

Please sign in to comment.