···39 # Supported in newer board revisions
40 arm_boost=1
4142+ [cm4]
43+ # Enable host mode on the 2711 built-in XHCI USB controller.
44+ # This line should be removed if the legacy DWC2 controller is required
45+ # (e.g. for USB device mode) or if USB support is not required.
46+ otg_mode=1
47+48 [all]
49 # Boot in 64-bit mode.
50 arm_64bit=1
···71 cp ${pkgs.ubootRaspberryPi4_64bit}/u-boot.bin firmware/u-boot-rpi4.bin
72 cp ${pkgs.raspberrypi-armstubs}/armstub8-gic.bin firmware/armstub8-gic.bin
73 cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-4-b.dtb firmware/
74+ cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-400.dtb firmware/
75+ cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-cm4.dtb firmware/
76+ cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/bcm2711-rpi-cm4s.dtb firmware/
77 '';
78 populateRootCommands = ''
79 mkdir -p ./files/boot
···32 mkdir -p "$out/lib/firmware/brcm"
3334 # Wifi firmware
35- shopt -s extglob
36- for filename in firmware-nonfree/brcm/brcmfmac434??{,s}-sdio.*; do
37- cp "$filename" "$out/lib/firmware/brcm"
38- done
3940 # Bluetooth firmware
41- cp bluez-firmware/broadcom/*.hcd "$out/lib/firmware/brcm"
00000042 runHook postInstall
43 '';
44-45- outputHashMode = "recursive";
46- outputHashAlgo = "sha256";
47- outputHash = "sha256-Fw8EC1jzszWg9rNH01oaOIHnSYDuF6ov6ulmIAPuNz4=";
4849 meta = with lib; {
50 description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3+ and Zero W";
···32 mkdir -p "$out/lib/firmware/brcm"
3334 # Wifi firmware
35+ cp -rv "$NIX_BUILD_TOP/firmware-nonfree/debian/config/brcm80211/." "$out/lib/firmware/"
0003637 # Bluetooth firmware
38+ cp -rv "$NIX_BUILD_TOP/bluez-firmware/broadcom/." "$out/lib/firmware/brcm"
39+40+ # CM4 symlink must be added since it's missing from upstream
41+ pushd $out/lib/firmware/brcm &>/dev/null
42+ ln -s "./brcmfmac43455-sdio.txt" "$out/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt"
43+ popd &>/dev/null
44+45 runHook postInstall
46 '';
00004748 meta = with lib; {
49 description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3+ and Zero W";
+4-4
pkgs/os-specific/linux/nvidia-x11/default.nix
···19 # Policy: use the highest stable version as the default (on our master).
20 stable = if stdenv.hostPlatform.system == "x86_64-linux"
21 then generic {
22- version = "510.60.02";
23- sha256_64bit = "sha256-qADfwFSQeP2Mbo5ngO+47uh4cuYFXH9fOGpHaM4H4AM=";
24- settingsSha256 = "sha256-Voa1JZ2qqJ1t+bfwKh/mssEi/hjzLTPwef2XG/gAC+0=";
25- persistencedSha256 = "sha256-THgK2GpRcttqSN2WxcuJu5My++Q+Y34jG8hm7daxhAQ=";
26 }
27 else legacy_390;
28
···19 # Policy: use the highest stable version as the default (on our master).
20 stable = if stdenv.hostPlatform.system == "x86_64-linux"
21 then generic {
22+ version = "510.68.02";
23+ sha256_64bit = "sha256-vSw0SskrL8ErBgQ1kKT+jU6wzLdNDEk1LwBM8tKZ9MU=";
24+ settingsSha256 = "sha256-4TBA/ITpaaBiVDkpj7/Iydei1knRPpruPL4fRrqFAmU=";
25+ persistencedSha256 = "sha256-Q1Rk6dAK4pnm6yDK4kmj5Vg4GRbi034C96ypywHYB2I=";
26 }
27 else legacy_390;
28
+12
pkgs/os-specific/linux/systemd/default.nix
···666 rm -rf $out/share/doc
667 '';
668000000000000669 passthru = {
670 # The interface version prevents NixOS from switching to an
671 # incompatible systemd at runtime. (Switching across reboots is
···666 rm -rf $out/share/doc
667 '';
668669+ # Avoid *.EFI binary stripping. At least on aarch64-linux strip
670+ # removes too much from PE32+ files:
671+ # https://github.com/NixOS/nixpkgs/issues/169693
672+ # The hack is to move EFI file out of lib/ before doStrip
673+ # run and return it after doStrip run.
674+ preFixup = lib.optionalString withEfi ''
675+ mv $out/lib/systemd/boot/efi $out/dont-strip-me
676+ '';
677+ postFixup = lib.optionalString withEfi ''
678+ mv $out/dont-strip-me $out/lib/systemd/boot/efi
679+ '';
680+681 passthru = {
682 # The interface version prevents NixOS from switching to an
683 # incompatible systemd at runtime. (Switching across reboots is