From a969eee0841a8de1e8a1c75d211059a47fa110a9 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 3 Apr 2026 13:21:47 +0200 Subject: [PATCH] dell/precision/5820: init --- README.md | 1 + dell/precision/5820/default.nix | 31 +++++++++++++++++++++++++++++++ flake.nix | 1 + 3 files changed, 33 insertions(+) create mode 100644 dell/precision/5820/default.nix diff --git a/README.md b/README.md index c61b7eb9..4103ad59 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ See code for all available configurations. | [Dell Precision 5530](dell/precision/5530) | `` | `dell-precision-5530` | | [Dell Precision 5560](dell/precision/5560) | `` | `dell-precision-5560` | | [Dell Precision 5570](dell/precision/5570) | `` | `dell-precision-5570` | +| [Dell Precision 5820](dell/precision/5820) | `` | `dell-precision-5820` | | [Dell Precision 7520](dell/precision/7520) | `` | `dell-precision-7520` | | [Dell XPS 13 7390](dell/xps/13-7390) | `` | `dell-xps-13-7390` | | [Dell XPS 13 9300](dell/xps/13-9300) | `` | `dell-xps-13-9300` | diff --git a/dell/precision/5820/default.nix b/dell/precision/5820/default.nix new file mode 100644 index 00000000..09faceeb --- /dev/null +++ b/dell/precision/5820/default.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + ... +}: +{ + imports = [ + ../../../common/cpu/intel + ../../../common/pc + ../../../common/pc/ssd + ../../../common/gpu/nvidia + ]; + hardware.enableRedistributableFirmware = lib.mkDefault true; + + boot.initrd.availableKernelModules = [ + "xhci_pci" + "ahci" + "vmd" + "nvme" + ]; + + hardware = { + nvidia = { + nvidiaSettings = lib.mkDefault true; + package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.legacy_580; + open = lib.mkDefault false; + }; + }; + + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; +} diff --git a/flake.nix b/flake.nix index f92218d6..f4a8c3c6 100644 --- a/flake.nix +++ b/flake.nix @@ -138,6 +138,7 @@ dell-precision-5530 = import ./dell/precision/5530; dell-precision-5560 = import ./dell/precision/5560; dell-precision-5570 = import ./dell/precision/5570; + dell-precision-5820 = import ./dell/precision/5820; dell-precision-7520 = import ./dell/precision/7520; dell-xps-13-7390 = import ./dell/xps/13-7390; dell-xps-13-9300 = import ./dell/xps/13-9300;