Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ See code for all available configurations.
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` | `dell-precision-5530` |
| [Dell Precision 5560](dell/precision/5560) | `<nixos-hardware/dell/precision/5560>` | `dell-precision-5560` |
| [Dell Precision 5570](dell/precision/5570) | `<nixos-hardware/dell/precision/5570>` | `dell-precision-5570` |
| [Dell Precision 5680](dell/precision/5680) | `<nixos-hardware/dell/precision/5680>` | `dell-precision-5680` |
| [Dell Precision 7520](dell/precision/7520) | `<nixos-hardware/dell/precision/7520>` | `dell-precision-7520` |
| [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` | `dell-xps-13-7390` |
| [Dell XPS 13 9300](dell/xps/13-9300) | `<nixos-hardware/dell/xps/13-9300>` | `dell-xps-13-9300` |
Expand Down
66 changes: 66 additions & 0 deletions dell/precision/5680/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
lib,
...
}:
{
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
../../../common/cpu/intel
../../../common/gpu/nvidia/prime.nix
];

boot = {
kernelModules = [ "kvm-intel" ];
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
};

hardware = {
# Audio
enableRedistributableFirmware = lib.mkDefault true;

# Webcam
ipu6 = {
enable = lib.mkDefault true;
platform = lib.mkDefault "ipu6ep";
};

bluetooth = {
enable = lib.mkDefault true;
powerOnBoot = lib.mkDefault true;
};

graphics.enable = lib.mkDefault true;
intel-gpu-tools.enable = lib.mkDefault true;

nvidia = {
modesetting.enable = lib.mkDefault true;
nvidiaSettings = lib.mkDefault true;
open = lib.mkDefault false;

powerManagement = {
enable = lib.mkDefault true;
finegrained = lib.mkDefault true;
};

prime = {
intelBusId = lib.mkDefault "PCI:00:02:0";
nvidiaBusId = lib.mkDefault "PCI:01:00:0";
};
};
};

services = {
fwupd.enable = lib.mkDefault true; # update firmware
hardware.bolt.enable = lib.mkDefault true; # use thunderbolt
thermald.enable = lib.mkDefault true; # cpu temp management
};
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
dell-precision-5530 = import ./dell/precision/5530;
dell-precision-5560 = import ./dell/precision/5560;
dell-precision-5570 = import ./dell/precision/5570;
dell-precision-5680 = import ./dell/precision/5680;
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;
Expand Down