[Mesa+Hardware] move Mesa specific options to a dedicated files

This commit is contained in:
Antoine Viallon 2023-04-27 23:55:08 +02:00
parent 250820cb82
commit d3e80fda86
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
7 changed files with 58 additions and 13 deletions

View file

@ -4,7 +4,6 @@ let
cfg = config.aviallon.hardware.amd;
devCfg = config.aviallon.developer;
generalCfg = config.aviallon.general;
myMesa = if generalCfg.unsafeOptimizations then pkgs.mesaOptimized else pkgs.mesa;
in {
config = mkIf (cfg.enable && cfg.kernelDriver == "amdgpu") {
boot.initrd.kernelModules = [ "amdgpu" ];