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;
@ -49,10 +49,16 @@ In fact I (viric) created the FS into a NBD, not a real SD, to create this image
services.nixosManual.enable = false;
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;
};
nix.buildCores = 4;
nix.binaryCaches = [ ];
}
}