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
apple/macbookpro/11-5: init #68
apple/macbookpro/11-5: init #68
Conversation
Also added a fix for a spurious wakeup signal that I judged to be important enough to include in this initial PR. |
6140920
to
9ac18df
Compare
apple/macbook-pro/11-5/default.nix
Outdated
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix> | ||
]; | ||
|
||
boot.loader.systemd-boot.enable = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think mkDefault should be used for boolean options: https://github.com/NixOS/nixos-hardware/pull/67/files#diff-0660552a9aaaac3267076efad7bf5c1bR9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, seems reasonable to make this optional.
apple/macbook-pro/11-5/default.nix
Outdated
]; | ||
|
||
boot.loader.systemd-boot.enable = true; | ||
boot.loader.efi.canTouchEfiVariables = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be only done for the first installation. Otherwise a new boot entry is created for every nixos-rebuild switch. This can fill up the nvram, which is also limited in terms of write-cycles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, thank you. How about if I put these two lines as instructions in the README.md file instead?
I suppose macbook-pro/10-1 could also do with a PR to fix.
Would be nice to update the docs too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these instructions better suited? https://nixos.wiki/wiki/Bootloader#Keeping_kernels.2Finitrd_on_the_main_partition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sorry for the noise: Seeing as this config is already automatically generated by nixos-generate-config I suppose it really shouldn't be in this module at all.
I'll remove the boot loader completely if there's no objections.
9ac18df
to
93c0fec
Compare
Looks good. Only merge conflicts needs to be resolved. |
f33db96
to
f0ffb9f
Compare
As suggested by issue NixOS#41.
.wiki is just plain distracting to edit, markdown allows me to quickly write up accompanying docs.
Since the boot loader is already automatically generated by nixos-generate-config, there is no need to include it here.
f0ffb9f
to
a9f65b8
Compare
OK, that ought do it |
Similar to macbookpro/10-1 and macbookpro/12-1.
Includes (minimal) external wiki references as suggested by #41, but this commit can be dropped if it is considered out of scope.