finally load the gpu firmware in initrd

This commit is contained in:
Adam Stephens 2024-07-30 22:25:13 -04:00
parent 8e16dc9e6a
commit 14777d1f0c
No known key found for this signature in database
4 changed files with 57 additions and 46 deletions

View file

@ -79,7 +79,6 @@
...
}:
let
dtb = "${config.boot.kernelPackages.kernel}/dtbs/qcom/${dtbName}";
image = import "${inputs.nixpkgs}/nixos/lib/make-disk-image.nix" {
inherit config lib pkgs;
@ -92,8 +91,6 @@
in
{
imports = [ "${toString modulesPath}/installer/cd-dvd/iso-image.nix" ];
hardware.deviceTree = {
enable = true;
name = "qcom/${dtbName}";
@ -101,11 +98,18 @@
system.build.bootstrap-image = image;
boot.initrd.systemd.enable = true;
boot.initrd.systemd.emergencyAccess = true;
boot.loader.grub.enable = false;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.graceful = true;
boot = {
initrd = {
systemd.enable = true;
systemd.emergencyAccess = true;
};
loader = {
grub.enable = false;
systemd-boot.enable = true;
systemd-boot.graceful = true;
};
};
nixpkgs.config.allowUnfree = true;
@ -114,16 +118,16 @@
bluetoothMac = "02:68:b3:29:da:98";
};
isoImage = {
makeEfiBootable = true;
makeUsbBootable = true;
contents = [
{
source = dtb;
target = "/x13s.dtb";
}
];
fileSystems = {
"/boot" = {
fsType = "vfat";
device = "/dev/disk/by-label/ESP";
};
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
};
}
)