Skip to content

Commit

Permalink
fix(nvidia): Fix broken eval if withIntegratedGPU is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Jan 1, 2025
1 parent 6576a48 commit adbb8b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nixos-modules/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion nixos-modules/nvidia/prime.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion nixos-modules/nvidia/vaapi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit adbb8b2

Please sign in to comment.