forked from kuruczgy/x1e-nixos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnixpkgs-devicetree.patch
34 lines (30 loc) · 1.32 KB
/
nixpkgs-devicetree.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 8eaa8613a26efda1f33f6c96730a40a70831a74c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gy=C3=B6rgy=20Kurucz?= <[email protected]>
Date: Sat, 28 Sep 2024 13:08:35 +0200
Subject: [PATCH] HACK: Unconditionally boot using devicetree in the ISO
---
nixos/modules/installer/cd-dvd/iso-image.nix | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 2aa8899e5b35..a1b07477cf36 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -23,6 +23,7 @@ let
# Fallback to UEFI console for boot, efifb sometimes has difficulties.
terminal_output console
+ devicetree /devicetree.dtb
linux ${defaults.image} \''${isoboot} ${defaults.params} ${
option.params or ""
}
@@ -813,6 +814,9 @@ in
{ source = config.system.build.initialRamdisk + "/" + config.system.boot.loader.initrdFile;
target = "/boot/" + config.system.boot.loader.initrdFile;
}
+ { source = "${config.hardware.deviceTree.package}/${config.hardware.deviceTree.name}";
+ target = "/devicetree.dtb";
+ }
{ source = pkgs.writeText "version" config.system.nixos.label;
target = "/version.txt";
}
--
2.44.1