1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00

rpi2.nix: pkgs.platforms.raspberrypi2 is no longer correct

This commit is contained in:
Ruben Maher 2017-07-05 08:46:22 +09:30 committed by Emery Hemingway
parent 744f289978
commit ecbb9c15c3

View file

@ -20,7 +20,7 @@ In fact I (viric) created the FS into a NBD, not a real SD, to create this image
*/ */
{pkgs, config, ...}: { pkgs, config, lib, ...}:
{ {
boot.consoleLogLevel = 7; boot.consoleLogLevel = 7;
@ -49,7 +49,13 @@ In fact I (viric) created the FS into a NBD, not a real SD, to create this image
services.nixosManual.enable = false; services.nixosManual.enable = false;
nixpkgs.config = { nixpkgs.config = {
platform = pkgs.platforms.raspberrypi2; # Since https://github.com/NixOS/nixpkgs/commit/f0b634c7e838cdd65ac6f73933c99af3f38d0fa8
nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;
# Earlier than that, use this:
# platform = pkgs.platforms.raspberrypi2;
# Also be aware of this issue if you're encountering infinite recursion:
# https://github.com/NixOS/nixpkgs/issues/24170
allowUnfree = true; allowUnfree = true;
}; };