mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
Merge branch 'master' into microsoft-surface/update-kernel-6.19.8
This commit is contained in:
3 files changed
+12
-8
No files matched your search
@@ -1,6 +1,10 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
../common/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = lib.mkDefault (
|
kernelPackages = lib.mkDefault (
|
||||||
pkgs.linuxPackagesFor (pkgs.callPackage ../common/kernel.nix { rpiVersion = 3; })
|
pkgs.linuxPackagesFor (pkgs.callPackage ../common/kernel.nix { rpiVersion = 3; })
|
||||||
|
|||||||
@@ -27,17 +27,12 @@ with lib;
|
|||||||
| xargs -0 cp -v --no-preserve=mode --target-directory "$out" --parents
|
| xargs -0 cp -v --no-preserve=mode --target-directory "$out" --parents
|
||||||
|
|
||||||
for dtb in $(find "$out" -type f -name '*.dtb'); do
|
for dtb in $(find "$out" -type f -name '*.dtb'); do
|
||||||
dtbCompat=$(fdtget -t s "$dtb" / compatible 2>/dev/null || true)
|
|
||||||
# skip files without `compatible` string
|
# skip files without `compatible` string
|
||||||
test -z "$dtbCompat" && continue
|
fdtget -t s "$dtb" / compatible 2>/dev/null || continue
|
||||||
|
|
||||||
${flip (concatMapStringsSep "\n") overlays (o: ''
|
${flip (concatMapStringsSep "\n") overlays (o: ''
|
||||||
overlayCompat="$(fdtget -t s "${o.dtboFile}" / compatible)"
|
# skip non-matching overlays
|
||||||
|
if ${
|
||||||
# skip incompatible and non-matching overlays
|
|
||||||
if [[ ! "$dtbCompat" =~ "$overlayCompat" ]]; then
|
|
||||||
echo "Skipping overlay ${o.name}: incompatible with $(basename "$dtb")"
|
|
||||||
elif ${
|
|
||||||
if ((o.filter or null) == null) then
|
if ((o.filter or null) == null) then
|
||||||
"false"
|
"false"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./config-txt.nix
|
||||||
|
./config-txt-defaults.nix
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"usb-storage"
|
"usb-storage"
|
||||||
"usbhid"
|
"usbhid"
|
||||||
|
|||||||
Reference in new issue
Block a user