mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
apply review suggestions from @06kellyjac
Co-authored-by: j-k <dev@j-k.io>
This commit is contained in:
committed by
GitHub
parent
128dad1c8d
commit
245d8f9f97
@@ -1,17 +1,15 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
let
|
||||
callPackage = path: overrides:
|
||||
let f = import path;
|
||||
in f ((builtins.intersectAttrs (builtins.functionArgs f) pkgs) // overrides);
|
||||
cfg = config.hardware.raspberry-pi."4".apply-overlays-dtmerge;
|
||||
dt_ao_overlay = (final: prev: {
|
||||
deviceTree.applyOverlays = (prev.callPackage ./apply-overlays-dtmerge.nix { }).applyOverlays;
|
||||
deviceTree.applyOverlays = (prev.callPackage ./apply-overlays-dtmerge.nix { })
|
||||
});
|
||||
in {
|
||||
options.hardware = {
|
||||
raspberry-pi."4".apply-overlays-dtmerge = {
|
||||
enable = lib.mkEnableOption ''
|
||||
replace deviceTree.applyOverlays implementation to use dtmerge from libraspberrypi.
|
||||
this can resolve issues with applying dtbs for the pi.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user