2017-12-24 10:13:25 -05:00
|
|
|
{ lib, pkgs, ...}:
|
2016-02-26 05:29:48 -05:00
|
|
|
|
|
|
|
{
|
2017-12-24 10:13:25 -05:00
|
|
|
boot = {
|
|
|
|
consoleLogLevel = lib.mkDefault 7;
|
|
|
|
extraTTYs = [ "ttyAMA0" ];
|
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-02-26 05:29:48 -05:00
|
|
|
|
2017-12-24 10:13:25 -05:00
|
|
|
nix.buildCores = 4;
|
2016-02-26 05:29:48 -05:00
|
|
|
|
2017-12-24 10:13:25 -05:00
|
|
|
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
2017-07-04 19:16:22 -04:00
|
|
|
|
2017-12-24 10:13:25 -05:00
|
|
|
# cpufrequtils doesn't build on ARM
|
|
|
|
powerManagement.enable = lib.mkDefault false;
|
2016-02-26 05:29:48 -05:00
|
|
|
|
2017-12-24 10:13:25 -05:00
|
|
|
services.openssh.enable = lib.mkDefault true;
|
2017-07-04 19:16:22 -04:00
|
|
|
}
|