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 E7240 Profile #64

Closed
wants to merge 4 commits into from
Closed

Conversation

ashgillman
Copy link
Contributor

Current XPS 15 profile works well for Dell E7240 ultrabook.

(Current XPS 15 works well)
];

boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
Copy link
Member

@Mic92 Mic92 Jul 30, 2018

Choose a reason for hiding this comment

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

Do you think these two lines are required? It is also part of the generator:

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/tools/nixos-generate-config.pl#L534

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, not sure. I replace everything in the generator so was useful for me. Also, this is in the XPS13 setup. So I think it's best to have it here, but if you disagree I wouldn't argue against it.

Copy link
Member

Choose a reason for hiding this comment

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

The second line is something one might not want to have by default enabled: #68 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

But still, what about the first. I assume you do actually still want this generally for this laptop?

@ashgillman
Copy link
Contributor Author

So I added pulseaudio and I have found that to fix a bug with suspending, you need to use an older kernel version. Only, the available kernel versions change from nixpkgs to nixpkgs, so this may not be actually desirable to specify.

../../../common/pc/laptop
];

boot.loader.systemd-boot.enable = 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.

What if the user has already installed grub?


boot.loader.systemd-boot.enable = lib.mkDefault true;

hardware.pulseaudio.enable = true;
Copy link
Member

Choose a reason for hiding this comment

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

We usually try avoid opinionated configuration like the sound system. https://github.com/NixOS/nixos-hardware/blob/master/CONTRIBUTING.md#writing-profiles

Why was this necessary?

@danbst
Copy link
Contributor

danbst commented Feb 19, 2019

Agree, too opinionated IMO. The problem "doesn't work on kernel XXX" should be solved in a more generic way. Maybe just write a note in README: "if you experience problems with suspend, try setting older (4.14) kernel". It may also be wrong to use old kernel next year - fix may be upstreamed already.

@ashgillman what do you think?

@ashgillman
Copy link
Contributor Author

I think all previous comments are fair. I have updated, moving kernel choice to a comment.

README.org Outdated Show resolved Hide resolved
Link e7240 readme in main readme

Co-Authored-By: ashgillman <gillmanash@gmail.com>
@Mic92 Mic92 mentioned this pull request Sep 27, 2019
Copy link
Member

@Mic92 Mic92 left a comment

Choose a reason for hiding this comment

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

Looks good to me except for the merge conflicts!

@Mic92
Copy link
Member

Mic92 commented Oct 30, 2019

@Mic92 Mic92 closed this Oct 30, 2019
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.

None yet

3 participants