mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardware/Mesa] Enable asking for bleeding-edge mesa
This commit is contained in:
parent
8b87ab5f2d
commit
c75abbeffa
1 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,12 @@ in {
|
||||||
description = "Wether to enable (unsafe) mesa optimizations";
|
description = "Wether to enable (unsafe) mesa optimizations";
|
||||||
example = false;
|
example = false;
|
||||||
};
|
};
|
||||||
|
unstable = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = "Wether or not to use mesa from nixpkgs-unstable";
|
||||||
|
example = config.aviallon.general.unsafeOptimizations;
|
||||||
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
default = pkgs.mesa;
|
default = pkgs.mesa;
|
||||||
type = packageWithDefaults;
|
type = packageWithDefaults;
|
||||||
|
|
@ -54,6 +60,9 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.corectrl.enable = mkDefault config.hardware.opengl.enable;
|
programs.corectrl.enable = mkDefault config.hardware.opengl.enable;
|
||||||
|
|
||||||
|
aviallon.hardware.mesa.package = mkIf cfg.unstable pkgs.unstable.mesa;
|
||||||
|
aviallon.hardware.mesa.package32 = mkIf cfg.unstable pkgs.unstable.driversi686Linux.mesa;
|
||||||
|
|
||||||
aviallon.hardware.mesa.internal = mkIf cfg.optimized {
|
aviallon.hardware.mesa.internal = mkIf cfg.optimized {
|
||||||
package = mkDefault (
|
package = mkDefault (
|
||||||
optimizePkg { } cfg.package);
|
optimizePkg { } cfg.package);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue