fix compileDTS overlay for raspberry-pi (#754)

* fix compileDTS overlay

due to https://github.com/NixOS/nixpkgs/pull/251898
the compileDTS function has been moved to `device-tree`

nixos-hardware has an own overlay for the raspberry-pi
which needs the `compileDTS` function now, too.

This commit adds it.

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

* apply review comments

Co-authored-by: Majiir Paktu <majiir@nabaal.net>
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

---------

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Co-authored-by: Majiir Paktu <majiir@nabaal.net>
This commit is contained in:
Florian 2023-10-10 23:58:03 +02:00 committed by GitHub
parent 6ea13c2df4
commit c2bbfcfc3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,9 @@
let
cfg = config.hardware.raspberry-pi."4".apply-overlays-dtmerge;
dt_ao_overlay = _final: prev: {
deviceTree.applyOverlays = prev.callPackage ./apply-overlays-dtmerge.nix { };
deviceTree = prev.deviceTree // {
applyOverlays = _final.callPackage ./apply-overlays-dtmerge.nix { };
};
};
in {
options.hardware = {