Skip to content

Add dell precision-5680 hardware #1503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
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 @@ -159,6 +159,7 @@ See code for all available configurations.
| [Dell Precision 3541](dell/precision/3541) | `<nixos-hardware/dell/precision/3541>` | `dell-precision-3541` |
| [Dell Precision 5490](dell/precision/5490) | `<nixos-hardware/dell/precision/5490>` | `dell-precision-5490` |
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` | `dell-precision-5530` |
| [Dell Precision 5530](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
55 changes: 55 additions & 0 deletions dell/precision/5680/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
...
}:
{
imports = [
../../../common/hidpi.nix
../../../common/pc/laptop
../../../common/pc/ssd
../../../common/cpu/intel/raptor-lake
../../../common/gpu/nvidia/ada-lovelace
../../../common/gpu/nvidia/prime.nix
];

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;

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

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
pcscd.enable = lib.mkDefault true; # card reader
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this module from yubikeys. Does this hardware has some sort of sd-card slot?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this laptop comes with a sd-card reader

thermald.enable = lib.mkDefault true; # fans
};

}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
dell-precision-5490 = import ./dell/precision/5490;
dell-precision-5530 = import ./dell/precision/5530;
dell-precision-5560 = import ./dell/precision/5560;
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