Merge pull request #196 from Mic92/eval-errors
raspberry-2: fix evaluation warning
This commit is contained in:
commit
653f7ba3ca
|
@ -1,9 +1,11 @@
|
|||
{ lib, pkgs, ...}:
|
||||
|
||||
let
|
||||
hasConsoleExtraTTYs = lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.03";
|
||||
in
|
||||
{
|
||||
boot = {
|
||||
consoleLogLevel = lib.mkDefault 7;
|
||||
extraTTYs = [ "ttyAMA0" ];
|
||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi2;
|
||||
kernelParams = [
|
||||
"dwc_otg.lpm_enable=0"
|
||||
|
@ -19,8 +21,11 @@
|
|||
version = lib.mkDefault 2;
|
||||
};
|
||||
};
|
||||
extraTTYs = lib.mkIf (!hasConsoleExtraTTYs) [ "ttyAMA0" ];
|
||||
};
|
||||
|
||||
console.extraTTYs = lib.mkIf hasConsoleExtraTTYs [ "ttyAMA0" ];
|
||||
|
||||
nix.buildCores = 4;
|
||||
|
||||
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
||||
|
|
Loading…
Reference in a new issue