diff options
author | K900 <me@0upti.me> | 2022-08-24 10:08:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 10:08:52 +0300 |
commit | 66d043b2968538c3a7a3abd4d402b3d62911157e (patch) | |
tree | 9af7e977359ed198b9c53e98966f3df6ca8e280b /nixos/modules/hardware | |
parent | 36f0713ebe70abbd4029d56cad14144e12c1d0c7 (diff) | |
parent | 916ca8f2b0c208def051f8ea9760c534a40309db (diff) | |
download | nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar.gz nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar.bz2 nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar.lz nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar.xz nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.tar.zst nixpkgs-66d043b2968538c3a7a3abd4d402b3d62911157e.zip |
Merge pull request #187528 from rnhmjoj/pr-fix-dt-overlays
nixos/hardware/device-tree: make overlays more reliable
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/device-tree.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/hardware/device-tree.nix b/nixos/modules/hardware/device-tree.nix index 4ce3a3e6c6a..58b4ac66b46 100644 --- a/nixos/modules/hardware/device-tree.nix +++ b/nixos/modules/hardware/device-tree.nix @@ -14,6 +14,15 @@ let ''; }; + filter = mkOption { + type = types.nullOr types.str; + default = null; + example = "*rpi*.dtb"; + description = lib.mdDoc '' + Only apply to .dtb files matching glob expression. + ''; + }; + dtsFile = mkOption { type = types.nullOr types.path; description = lib.mdDoc '' @@ -150,6 +159,7 @@ in ''; type = types.listOf (types.coercedTo types.path (path: { name = baseNameOf path; + filter = null; dtboFile = path; }) overlayType); description = lib.mdDoc '' |