Skip to content

Commit

Permalink
common/gpu/intel: update modules to use new options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Oct 18, 2024
1 parent a22c02f commit d338fb9
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/gpu/intel/bay-trail/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:

{
imports = [ ../. ];

hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}
10 changes: 10 additions & 0 deletions common/gpu/intel/braswell/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:

{
imports = [ ../. ];

hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}
10 changes: 10 additions & 0 deletions common/gpu/intel/broadwell/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:

{
imports = [ ../. ];

hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}
2 changes: 2 additions & 0 deletions common/gpu/intel/comet-lake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
imports = [ ../. ];

boot.kernelParams = [ "i915.enable_guc=2" ];

hardware.intelgpu.vaapiDriver = "intel-media-driver";
}
2 changes: 2 additions & 0 deletions common/gpu/intel/elkhart-lake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
imports = [ ../. ];

boot.kernelParams = [ "i915.enable_guc=2" ];

hardware.intelgpu.vaapiDriver = "intel-media-driver";
}
10 changes: 10 additions & 0 deletions common/gpu/intel/haswell/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:

{
imports = [ ../. ];

hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}
2 changes: 2 additions & 0 deletions common/gpu/intel/jasper-lake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
imports = [ ../. ];

boot.kernelParams = [ "i915.enable_guc=2" ];

hardware.intelgpu.vaapiDriver = "intel-media-driver";
}
2 changes: 2 additions & 0 deletions common/gpu/intel/kaby-lake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
"i915.enable_fbc=1"
"i915.enable_psr=2"
];

hardware.intelgpu.vaapiDriver = "intel-media-driver";
}
2 changes: 2 additions & 0 deletions common/gpu/intel/sandy-bridge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
# Enables RC6, RC6p and RC6pp.
# Last two are only available on Sandy Bridge CPUs (circa 2011).
boot.kernelParams = [ "i915.enable_rc6=7" ];

hardware.intelgpu.vaapiDriver = "intel-vaapi-driver";
}
1 change: 1 addition & 0 deletions common/gpu/intel/tiger-lake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
(lib.mkIf (config.hardware.intelgpu.driver == "i915") {
boot.kernelParams = [ "i915.enable_guc=3" ];
})
{ hardware.intelgpu.vaapiDriver = "intel-media-driver"; }
];
}

0 comments on commit d338fb9

Please sign in to comment.