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:
parent
744f289978
commit
ecbb9c15c3
1 changed files with 9 additions and 3 deletions
|
@ -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 = [ ];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue