1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-27 05:19:43 +01:00

Merge pull request #222 from Mic92/fix-ci

raspberry-2: remove console.extraTTYs
This commit is contained in:
Jörg Thalheim 2021-01-06 06:53:13 +00:00 committed by GitHub
commit fb1682bab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,5 @@
{ lib, pkgs, ...}:
let
hasConsoleExtraTTYs = lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.03";
in
{
boot = {
consoleLogLevel = lib.mkDefault 7;
@ -21,11 +18,8 @@ in
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;