diff --git a/README.md b/README.md index 8f2c54a3..f20d7a3e 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ See code for all available configurations. | [Dell Latitude E7240](dell/latitude/e7240) | `` | | [Dell Optiplex 3050](dell/optiplex/3050) | `` | | [Dell Poweredge R7515](dell/poweredge/r7515) | `` | -| [Dell Precision 3490](dell/precision/3490) | `` | +| [Dell Precision 3490, nvidia](dell/precision/3490/nvidia) | `` | +| [Dell Precision 3490, intel](dell/precision/3490/intel) | `` | | [Dell Precision 3541](dell/precision/3541) | `` | | [Dell Precision 5490](dell/precision/5490) | `` | | [Dell Precision 5530](dell/precision/5530) | `` | diff --git a/dell/precision/3490/default.nix b/dell/precision/3490/default.nix index c579f880..08d80d2f 100644 --- a/dell/precision/3490/default.nix +++ b/dell/precision/3490/default.nix @@ -1,21 +1,16 @@ { + warnings = [ + '' + DEPRECATED: The module has been deprecated. + + Either use + + for NVIDIA graphics or + + for Intel graphics. + '' + ]; imports = [ - ../../../common/cpu/intel/meteor-lake - ../../../common/gpu/nvidia/ada-lovelace - ../../../common/pc/laptop + ./nvidia/default.nix ]; - - boot.initrd.availableKernelModules = [ - "nvme" - "sd_mod" - "thunderbolt" - "usb_storage" - "vmd" - "xhci_pci" - ]; - - hardware.nvidia.prime = { - intelBusId = "PCI:0:2:0"; - nvidiaBusId = "PCI:1:0:0"; - }; } diff --git a/dell/precision/3490/intel/default.nix b/dell/precision/3490/intel/default.nix new file mode 100644 index 00000000..a5678040 --- /dev/null +++ b/dell/precision/3490/intel/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ../shared.nix + ]; +} diff --git a/dell/precision/3490/nvidia/default.nix b/dell/precision/3490/nvidia/default.nix new file mode 100644 index 00000000..3418debe --- /dev/null +++ b/dell/precision/3490/nvidia/default.nix @@ -0,0 +1,11 @@ +{ + imports = [ + ../shared.nix + ../../../../common/gpu/nvidia/ada-lovelace + ]; + + hardware.nvidia.prime = { + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; +} diff --git a/dell/precision/3490/shared.nix b/dell/precision/3490/shared.nix new file mode 100644 index 00000000..a4de2011 --- /dev/null +++ b/dell/precision/3490/shared.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ../../../common/cpu/intel/meteor-lake + ../../../common/pc/laptop + ]; +} diff --git a/flake.nix b/flake.nix index 4b2d832f..aed8651d 100644 --- a/flake.nix +++ b/flake.nix @@ -109,7 +109,9 @@ dell-latitude-e7240 = import ./dell/latitude/e7240; dell-optiplex-3050 = import ./dell/optiplex/3050; dell-poweredge-r7515 = import ./dell/poweredge/r7515; - dell-precision-3490 = import ./dell/precision/3490; + dell-precision-3490 = deprecated "1491" "dell-precision-3490" (import ./dell/precision/3490); + dell-precision-3490-nvidia = import ./dell/precision/3490/nvidia; + dell-precision-3490-intel = import ./dell/precision/3490/intel; dell-precision-3541 = import ./dell/precision/3541; dell-precision-5490 = import ./dell/precision/5490; dell-precision-5530 = import ./dell/precision/5530; diff --git a/lenovo/legion/15ach6h/README.md b/lenovo/legion/15ach6h/README.md index 19f6c247..63f4e97f 100644 --- a/lenovo/legion/15ach6h/README.md +++ b/lenovo/legion/15ach6h/README.md @@ -1,7 +1,7 @@ ## Introduction -Due to the introduction of DDG feature, you may toggle DDG frequently, so for the default settings of this laptop, we use "specialization" feature of Nix so that you can easily select the required graphics card driver in the startup menu. +Due to the introduction of Dual-Direct-GFX-Mode feature, you may toggle Dual-Direct-GFX-Mode frequently, so for the default settings of this laptop, we use "specialization" feature of Nix so that you can easily select the required graphics card driver in the startup menu. **But It will slow down NixOS evaluation by factor 2 and increase memory usage.** -So if you don't need specialization feature, you can just use hybrid only configuration or nvidia only (DDG only) configuration +So if you don't need specialization feature, you can just use hybrid only configuration or nvidia only (Dual-Direct-GFX-Mode only) configuration ## Using multiple drives with this configuration @@ -27,4 +27,4 @@ $ nix-info -m ... 06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c5) ... -``` \ No newline at end of file +```