Skip to content
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

Add Dell Precision 5520 (based on 5530) #1398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cjdell
Copy link

@cjdell cjdell commented Feb 27, 2025

Description of changes

Added the definition for Dell Precision 5520 using the already existing 5530 as a template.

Confirmed nVidia hybrid graphics are working.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

@@ -81,6 +81,7 @@
dell-poweredge-r7515 = import ./dell/poweredge/r7515;
dell-precision-3541 = import ./dell/precision/3541;
dell-precision-5490 = import ./dell/precision/5490;
dell-precision-5520 = import ./dell/precision/5520;
Copy link
Member

Choose a reason for hiding this comment

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

Please also add this model to the README.md table. Otherwise our CI doesn't test this.

open = lib.mkDefault false;
nvidiaSettings = lib.mkDefault true;
modesetting.enable = lib.mkDefault true;
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.stable;
Copy link
Member

Choose a reason for hiding this comment

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

Is this not the default?


hardware = {
nvidia = {
open = lib.mkDefault false;
Copy link
Member

Choose a reason for hiding this comment

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

Afaik we do set this in nvidia generation specific profiles i.e. ../../../common/gpu/nvidia/maxwell

hardware = {
nvidia = {
open = lib.mkDefault false;
nvidiaSettings = lib.mkDefault true;
Copy link
Member

Choose a reason for hiding this comment

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

};
};
};
# This will save you money and possibly your life!
Copy link
Member

Choose a reason for hiding this comment

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

Comment is in the wrong line.

@cjdell
Copy link
Author

cjdell commented Mar 8, 2025

@Mic92 Thank you for the review. I have blatantly stolen the config from the 5530 which is almost identical. In fact only lines 7 and 9 are different:

https://github.com/cjdell/nixos-hardware/blob/master/dell/precision/5530/default.nix
https://github.com/cjdell/nixos-hardware/blob/master/dell/precision/5520/default.nix

I may be out of my depth here but if you think there are improvements to be made then that would appear to be true of the 5530 model config as well which was merged 3 months ago. I deliberately made as few changes as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants