mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 05:53:32 +01:00
raspberry-pi: move kernel and firmware from nixpkgs
As part of the gradual phasing out of linux_rpi in nixpkgs Link: https://github.com/NixOS/nixpkgs/pull/477665 Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
This commit is contained in:
1 parent
cce68f4a54
commit
c8f766fd11
6 files changed
+209
-12
No files matched your search
@@ -3,7 +3,13 @@
|
||||
{
|
||||
boot = {
|
||||
consoleLogLevel = lib.mkDefault 7;
|
||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi2;
|
||||
kernelPackages = lib.mkDefault (
|
||||
pkgs.linuxPackagesFor (
|
||||
pkgs.callPackage ../common/kernel.nix {
|
||||
rpiVersion = 2;
|
||||
}
|
||||
)
|
||||
);
|
||||
kernelParams = [
|
||||
"dwc_otg.lpm_enable=0"
|
||||
"console=ttyAMA0,115200"
|
||||
@@ -17,7 +23,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
||||
nixpkgs.config.platform = lib.systems.platforms.armv7l-hf-multiplatform;
|
||||
|
||||
# cpufrequtils doesn't build on ARM
|
||||
powerManagement.enable = lib.mkDefault false;
|
||||
|
||||
Reference in new issue
Block a user