mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-05 02:29:40 +01:00
fd89332b4a
This option is no longer needed. Also remove boot.extraTTYs since NixOS is older than 20.03 is no longer supported.
31 lines
711 B
Nix
31 lines
711 B
Nix
{ lib, pkgs, ...}:
|
|
|
|
{
|
|
boot = {
|
|
consoleLogLevel = lib.mkDefault 7;
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi2;
|
|
kernelParams = [
|
|
"dwc_otg.lpm_enable=0"
|
|
"console=ttyAMA0,115200"
|
|
"rootwait"
|
|
"elevator=deadline"
|
|
];
|
|
loader = {
|
|
grub.enable = lib.mkDefault false;
|
|
generationsDir.enable = lib.mkDefault false;
|
|
raspberryPi = {
|
|
enable = lib.mkDefault true;
|
|
version = lib.mkDefault 2;
|
|
};
|
|
};
|
|
};
|
|
|
|
nix.buildCores = 4;
|
|
|
|
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
|
|
|
# cpufrequtils doesn't build on ARM
|
|
powerManagement.enable = lib.mkDefault false;
|
|
|
|
services.openssh.enable = lib.mkDefault true;
|
|
}
|