mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
raspberry-2: remove console.extraTTYs
This option is no longer needed. Also remove boot.extraTTYs since NixOS is older than 20.03 is no longer supported.
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
{ lib, pkgs, ...}:
|
{ lib, pkgs, ...}:
|
||||||
|
|
||||||
let
|
|
||||||
hasConsoleExtraTTYs = lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.03";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
consoleLogLevel = lib.mkDefault 7;
|
consoleLogLevel = lib.mkDefault 7;
|
||||||
@@ -21,11 +18,8 @@ in
|
|||||||
version = lib.mkDefault 2;
|
version = lib.mkDefault 2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraTTYs = lib.mkIf (!hasConsoleExtraTTYs) [ "ttyAMA0" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
console.extraTTYs = lib.mkIf hasConsoleExtraTTYs [ "ttyAMA0" ];
|
|
||||||
|
|
||||||
nix.buildCores = 4;
|
nix.buildCores = 4;
|
||||||
|
|
||||||
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
|
||||||
|
|||||||
Reference in New Issue
Block a user