-
-
Notifications
You must be signed in to change notification settings - Fork 630
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 raspberry-pi 0 and 3 #93
Conversation
Based off of 2.
Please also add a link to the README: https://github.com/NixOS/nixos-hardware#profiles |
# cpufrequtils doesn't build on ARM | ||
powerManagement.enable = lib.mkDefault false; | ||
|
||
services.openssh.enable = lib.mkDefault 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 would move the content to raspberry-pi/default.nix
for all versions and only import the default.nix here for better sharing. It is still good to list every generation explicit however because then people don't need to change anything in case we change something for a particular model.
Have you tested rpi 1 so? |
the wiki recommend the latest kernel for rpi2/rpi3: |
cc @samueldr |
As far as the kernel is concerned, when the wiki pages were authored, there was no AArch64 builds of the I do not know what is expected from this repository, but I guess defaulting to the Other than mainline/rpi everything looks fine, but I believe the serial interface (here ttyAMA0) is not the same for mainline (it's ttyS1), so it's something to keep in mind, maybe could be documented? |
}; | ||
}; | ||
|
||
nix.buildCores = 4; |
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.
While the device has 4 cores it has less than a 1GB of memory and will run out of memory like this.
|
||
nix.buildCores = 1; | ||
|
||
nixpkgs.config.platform = lib.systems.platforms.raspberrypi; |
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.
hostPlatform
?
|
||
nixpkgs.config.platform = lib.systems.platforms.aarch64-multiplatform; | ||
|
||
services.openssh.enable = lib.mkDefault 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 is a hardware profile, so it should not include service configurations, like SSH.
How about enabling zram-swap by default, to compensate for the imbalance between processor cores and available memory? |
Looks like this PR got stalled. If someone wants to take this over, please feel free to make a new pull request. |
I just installed on an RPi3 and the existing wiki documentation about what kernel to use is out of date. Mainline works after fix for NixOS/nixpkgs#97064. Guess I should get out of my comfort zone and make the edits The line between what should go in nixpkgs vs nixos-hardware seems fuzzy. Are people concerned about community fragmentation weakening the center with moving to flakes? |
OT, I know. I'm posting here because I'm wondering if I should pick up this PR and dust it off. It would basically be the contents of the arm config template on the wiki (which is what currently says to use old kernel on pi3). |
this is relevant in this regard: NixOS/rfcs#70 |
I can test it. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/raspberrypi-3b-nixos-24-05/34379/1 |
Based off of 2.