diff --git a/nixos-modules/nvidia/default.nix b/nixos-modules/nvidia/default.nix index b4e7aba8..aaee24bd 100644 --- a/nixos-modules/nvidia/default.nix +++ b/nixos-modules/nvidia/default.nix @@ -47,7 +47,7 @@ in # https://download.nvidia.com/XFree86/Linux-x86_64/565.57.01/README/kernel_open.html open = true; - dynamicBoost.enable = cfg.withIntegratedGPU; + dynamicBoost.enable = cfg.enable && cfg.withIntegratedGPU; }; boot = { diff --git a/nixos-modules/nvidia/prime.nix b/nixos-modules/nvidia/prime.nix index ff4626bd..72437d33 100644 --- a/nixos-modules/nvidia/prime.nix +++ b/nixos-modules/nvidia/prime.nix @@ -11,7 +11,7 @@ in options.easyNvidia.offload = with lib.types; { enable = lib.mkOption { type = bool; - enable = config.easyNvidia.prime.withIntegratedGPU; + enable = config.easyNvidia.enable && config.easyNvidia.prime.withIntegratedGPU; description = '' Whether to configure prime offload. diff --git a/nixos-modules/nvidia/vaapi.nix b/nixos-modules/nvidia/vaapi.nix index 6e8851ac..088f7acb 100644 --- a/nixos-modules/nvidia/vaapi.nix +++ b/nixos-modules/nvidia/vaapi.nix @@ -11,7 +11,7 @@ in options.easyNvidia.vaapi = with lib.types; { enable = lib.mkOption { type = bool; - default = !config.easyNvidia.withIntegratedGPU; + default = config.easyNvidia.enable && !config.easyNvidia.withIntegratedGPU; description = '' Whether to enable the NVIDIA vaapi driver.