From 0792ebc33309a1740db4092b4892b2306e9f36a8 Mon Sep 17 00:00:00 2001 From: Moritz Lumme <46034439+m00wl@users.noreply.github.com> Date: Thu, 19 Mar 2026 09:35:48 +0100 Subject: [PATCH 01/27] Add support for Intel NUC 7i3BNB --- README.md | 1 + flake.nix | 1 + intel/nuc/7i3bnb/default.nix | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 intel/nuc/7i3bnb/default.nix diff --git a/README.md b/README.md index c9e2d6bf..f37e4897 100644 --- a/README.md +++ b/README.md @@ -242,6 +242,7 @@ See code for all available configurations. | [Huawei Matebook X Pro (2020)](huawei/machc-wa) | `` | `huawei-machc-wa` | | [i.MX8QuadMax Multisensory Enablement Kit](nxp/imx8qm-mek/) | `` | `nxp-imx8qm-mek` | | [Intel NUC 5i5RYB](intel/nuc/5i5ryb/) | `` | `intel-nuc-5i5ryb` | +| [Intel NUC 7i3BNB](intel/nuc/7i3bnb/) | `` | `intel-nuc-7i3bnb` | | [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `` | `intel-nuc-8i7beh` | | [Intel NUC 12WSHi7](intel/nuc/12wshi7/) | `` | `intel-nuc-12wshi7` | | [Kobol Helios4](kobol/helios4) | `` | `kobol-helios-4` | diff --git a/flake.nix b/flake.nix index f1fd142c..fce19f58 100644 --- a/flake.nix +++ b/flake.nix @@ -207,6 +207,7 @@ huawei-machc-wa = import ./huawei/machc-wa; hp-notebook-14-df0023 = import ./hp/notebook/14-df0023; intel-nuc-5i5ryb = import ./intel/nuc/5i5ryb; + intel-nuc-7i3bnb = import ./intel/nuc/7i3bnb; intel-nuc-8i7beh = import ./intel/nuc/8i7beh; intel-nuc-12wshi7 = import ./intel/nuc/12wshi7; lenovo-ideacentre-k330 = import ./lenovo/ideacentre/k330; diff --git a/intel/nuc/7i3bnb/default.nix b/intel/nuc/7i3bnb/default.nix new file mode 100644 index 00000000..4b4dae3e --- /dev/null +++ b/intel/nuc/7i3bnb/default.nix @@ -0,0 +1,11 @@ +{ lib, ... }: + +{ + imports = [ + ../../../common/cpu/intel/kaby-lake + ../../../common/pc + ../../../common/pc/ssd + ]; + + services.thermald.enable = lib.mkDefault true; +} From cbf2dc32fae4aecf414c767db9af569d62ec6f64 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Fri, 10 Apr 2026 09:45:56 -0700 Subject: [PATCH 02/27] Add Dependabot for nix flake updates See https://github.blog/changelog/2026-04-07-dependabot-version-updates-now-support-the-nix-ecosystem/ --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace4600..f7e3c559 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "nix" + directory: "/" + schedule: + interval: "weekly" From 8adb8e570b495374f5943194eaef677b864b8d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Kokosi=C5=84ski?= Date: Sat, 21 Feb 2026 12:47:45 +0100 Subject: [PATCH 03/27] raspberry-pi/5: set generic-extlinux-compatible by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows the generic ubootRaspberryPiAarch64 package from nixpkgs to be used with Raspberry Pi 5. Signed-off-by: Filip KokosiƄski --- raspberry-pi/5/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raspberry-pi/5/default.nix b/raspberry-pi/5/default.nix index 535588ee..c9d44bd0 100644 --- a/raspberry-pi/5/default.nix +++ b/raspberry-pi/5/default.nix @@ -12,6 +12,8 @@ in imports = [ ../common/default.nix ]; boot = { + loader.grub.enable = lib.mkDefault false; + loader.generic-extlinux-compatible.enable = lib.mkDefault true; kernelPackages = lib.mkDefault ( pkgs.linuxPackagesFor (pkgs.callPackage ../common/kernel.nix { rpiVersion = 5; }) ); From bacd3ee7a9b24d0f18f7cdf944943738f362b14a Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 8 Apr 2026 08:08:45 +0800 Subject: [PATCH 04/27] framework: Add Laptop 13 Intel Core Ultra Series 3 Signed-off-by: Daniel Schaefer --- README.md | 1 + .../13-inch/intel-core-ultra-series3/README.md | 14 ++++++++++++++ .../13-inch/intel-core-ultra-series3/default.nix | 16 ++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 framework/13-inch/intel-core-ultra-series3/README.md create mode 100644 framework/13-inch/intel-core-ultra-series3/default.nix diff --git a/README.md b/README.md index c9204126..d9b30124 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,7 @@ See code for all available configurations. | [Framework 12th Gen Intel Core](framework/13-inch/12th-gen-intel) | `` | `framework-12th-gen-intel` | | [Framework 13th Gen Intel Core](framework/13-inch/13th-gen-intel) | `` | `framework-13th-gen-intel` | | [Framework Intel Core Ultra Series 1](framework/13-inch/intel-core-ultra-series1) | `` | `framework-intel-core-ultra-series1` | +| [Framework Intel Core Ultra Series 3](framework/13-inch/intel-core-ultra-series3) | `` | `framework-intel-core-ultra-series3` | | [Framework 13 AMD Ryzen 7040 Series](framework/13-inch/7040-amd) | `` | `framework-13-7040-amd` | | [Framework 13 AMD AI 300 Series](framework/13-inch/amd-ai-300-series) | `` | `framework-amd-ai-300-series` | | [Framework 12 13th Gen Intel Core](framework/12-inch/13th-gen-intel) | `` | `framework-12-13th-gen-intel` | diff --git a/framework/13-inch/intel-core-ultra-series3/README.md b/framework/13-inch/intel-core-ultra-series3/README.md new file mode 100644 index 00000000..1aef6016 --- /dev/null +++ b/framework/13-inch/intel-core-ultra-series3/README.md @@ -0,0 +1,14 @@ +# [Framework Laptop 13](https://frame.work/laptop13pro) + +## Updating Firmware + +Everything is updateable through fwupd, so it's enabled by default. + +To get the latest firmware, run: + +```sh +$ fwupdmgr refresh +$ fwupdmgr update +``` + +- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.PTL.BIOS.firmware) diff --git a/framework/13-inch/intel-core-ultra-series3/default.nix b/framework/13-inch/intel-core-ultra-series3/default.nix new file mode 100644 index 00000000..08482eea --- /dev/null +++ b/framework/13-inch/intel-core-ultra-series3/default.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ + ../common + ../common/intel.nix + ]; + + # Everything is updateable through fwupd + services.fwupd.enable = true; +} From 0e2bafe2b5fba6ee6fe5e54c6c5d6fa8f8e5bb26 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 8 Apr 2026 09:16:30 +0800 Subject: [PATCH 05/27] framework: ultra 3: 6.17 minimum kernel Signed-off-by: Daniel Schaefer --- framework/13-inch/intel-core-ultra-series3/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/13-inch/intel-core-ultra-series3/default.nix b/framework/13-inch/intel-core-ultra-series3/default.nix index 08482eea..7cf1c108 100644 --- a/framework/13-inch/intel-core-ultra-series3/default.nix +++ b/framework/13-inch/intel-core-ultra-series3/default.nix @@ -13,4 +13,9 @@ # Everything is updateable through fwupd services.fwupd.enable = true; + + # Absolute minimum + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.17") ( + lib.mkDefault pkgs.linuxPackages_latest + ); } From 132bbca15c2b42a51893fd464048dba796e55c93 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 8 Apr 2026 09:16:57 +0800 Subject: [PATCH 06/27] framework: ultra3: Allow unl0kr in initrd Signed-off-by: Daniel Schaefer --- framework/13-inch/intel-core-ultra-series3/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/13-inch/intel-core-ultra-series3/default.nix b/framework/13-inch/intel-core-ultra-series3/default.nix index 7cf1c108..99a3592e 100644 --- a/framework/13-inch/intel-core-ultra-series3/default.nix +++ b/framework/13-inch/intel-core-ultra-series3/default.nix @@ -18,4 +18,13 @@ boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.17") ( lib.mkDefault pkgs.linuxPackages_latest ); + + # Additional modules for touchscreen/touchpad in initrd (for unl0kr on-screen keyboard) + boot.initrd.kernelModules = lib.optionals config.boot.initrd.unl0kr.enable [ + "intel_lpss_pci" + "i2c_hid_acpi" + "i2c_hid" + "hid_multitouch" + "hid_generic" + ]; } From 56ea606134b42a47739ee3ec6dd253cdc450416f Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 22 Apr 2026 09:04:45 -0700 Subject: [PATCH 07/27] Add `tests` directory to Dependabot nix configuration Co-authored-by: Copilot --- .github/dependabot.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f7e3c559..17758944 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,8 @@ updates: schedule: interval: "weekly" - package-ecosystem: "nix" - directory: "/" + directories: + - "/" + - "tests/" schedule: interval: "weekly" From dcc512b7feff07749c5c7965a8d79056f14f1626 Mon Sep 17 00:00:00 2001 From: Vegard Strand Lende Date: Thu, 23 Apr 2026 10:01:17 +0200 Subject: [PATCH 08/27] framework: import ultra series 3 in flake --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 537b09e6..b429b4a9 100644 --- a/flake.nix +++ b/flake.nix @@ -177,6 +177,7 @@ framework-13th-gen-intel = import ./framework/13-inch/13th-gen-intel; framework-12-13th-gen-intel = import ./framework/12-inch/13th-gen-intel; framework-intel-core-ultra-series1 = import ./framework/13-inch/intel-core-ultra-series1; + framework-intel-core-ultra-series3 = import ./framework/13-inch/intel-core-ultra-series3; framework-13-7040-amd = import ./framework/13-inch/7040-amd; framework-amd-ai-300-series = import ./framework/13-inch/amd-ai-300-series; framework-16-7040-amd = import ./framework/16-inch/7040-amd; From d7514338e2fe25b52020bab1b299e464db39068f Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Fri, 24 Apr 2026 13:51:07 -0700 Subject: [PATCH 09/27] raspberry-pi: replace lib.overrideDerivation with .overrideAttrs lib.overrideDerivation is deprecated and strips passthru attributes (.configfile, .moduleBuildDependencies, etc.) from the kernel derivation, which breaks downstream users expecting a standard buildLinux output. .overrideAttrs preserves passthru and matches every other custom kernel in this repo. --- raspberry-pi/common/kernel.nix | 95 +++++++++++++++++----------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index 41a678dd..b579f7a8 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -14,58 +14,57 @@ let tag = "stable_20250916"; hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0=="; in -lib.overrideDerivation - (buildLinux ( - args - // { - version = "${modDirVersion}-${tag}"; - inherit modDirVersion; - pname = "linux-rpi"; +(buildLinux ( + args + // { + version = "${modDirVersion}-${tag}"; + inherit modDirVersion; + pname = "linux-rpi"; - src = fetchFromGitHub { - owner = "raspberrypi"; - repo = "linux"; - inherit tag hash; - }; + src = fetchFromGitHub { + owner = "raspberrypi"; + repo = "linux"; + inherit tag hash; + }; - defconfig = - { - "1" = "bcmrpi_defconfig"; - "2" = "bcm2709_defconfig"; - "3" = if stdenv.hostPlatform.isAarch64 then "bcm2711_defconfig" else "bcm2709_defconfig"; - "4" = "bcm2711_defconfig"; - "5" = "bcm2712_defconfig"; - } - .${toString rpiVersion}; - - features = { - efiBootStub = false; + defconfig = + { + "1" = "bcmrpi_defconfig"; + "2" = "bcm2709_defconfig"; + "3" = if stdenv.hostPlatform.isAarch64 then "bcm2711_defconfig" else "bcm2709_defconfig"; + "4" = "bcm2711_defconfig"; + "5" = "bcm2712_defconfig"; } - // (args.features or { }); + .${toString rpiVersion}; - isLTS = true; - - kernelPatches = with pkgs.kernelPatches; [ - bridge_stp_helper - request_key_helper - ]; - - extraMeta = - if (rpiVersion < 3) then - { - platforms = with lib.platforms; lib.intersectLists arm linux; - hydraPlatforms = [ ]; - } - else - { - platforms = with lib.platforms; lib.intersectLists (arm ++ aarch64) linux; - hydraPlatforms = [ "aarch64-linux" ]; - }; - ignoreConfigErrors = true; + features = { + efiBootStub = false; } - // (args.argsOverride or { }) - )) - (_oldAttrs: { + // (args.features or { }); + + isLTS = true; + + kernelPatches = with pkgs.kernelPatches; [ + bridge_stp_helper + request_key_helper + ]; + + extraMeta = + if (rpiVersion < 3) then + { + platforms = with lib.platforms; lib.intersectLists arm linux; + hydraPlatforms = [ ]; + } + else + { + platforms = with lib.platforms; lib.intersectLists (arm ++ aarch64) linux; + hydraPlatforms = [ "aarch64-linux" ]; + }; + ignoreConfigErrors = true; + } + // (args.argsOverride or { }) +)).overrideAttrs + { postConfigure = '' # The v7 defconfig has this set to '-v7' which screws up our modDirVersion. sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' @@ -110,4 +109,4 @@ lib.overrideDerivation copyDTB bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb copyDTB bcm2711-rpi-4-b.dtb bcm2838-rpi-4-b.dtb ''; - }) + } From 55b4b43081bdd1c74039ec44da8a53e118346ded Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 29 Apr 2026 09:20:23 +0300 Subject: [PATCH 10/27] .git-blame-ignore-revs: ignore nixfmt commit --- .git-blame-ignore-revs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 4c9bbd01..03b154f3 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -9,4 +9,5 @@ # reapplied by the auto-rebase script # nixfmt-rfc-style formatting -51e51e601448705c0d2f92ef90ec7b680123077c #!autorebase cd tests && nix fmt .. \ No newline at end of file +51e51e601448705c0d2f92ef90ec7b680123077c #!autorebase cd tests && nix fmt .. +166dee4f88a7e3ba1b7a243edb1aca822f00680e From 57fd23db8198e7834ee4f0d4cc8c51de4500a571 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Fri, 24 Apr 2026 15:45:35 -0700 Subject: [PATCH 11/27] raspberry-pi: fix DTB name mapping for U-Boot - Gate on rpiVersion instead of architecture; skip for Pi 4+ where vendor and upstream DTB names already match - Fix bcm2835-rpi-zero.dtb: was copied from bcm2708-rpi-b-plus (wrong board), now uses bcm2708-rpi-zero - Drop bcm2711-rpi-4-b -> bcm2838-rpi-4-b copy; nothing uses bcm2838-* Ref: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c --- raspberry-pi/common/kernel.nix | 71 ++++++++++++++++------------------ 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index b579f7a8..5f605a59 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -71,42 +71,37 @@ in sed -i $buildRoot/include/config/auto.conf -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' ''; - # Make copies of the DTBs named after the upstream names so that U-Boot finds them. - # This is ugly as heck, but I don't know a better solution so far. - postFixup = '' - dtbDir=${if stdenv.hostPlatform.isAarch64 then "$out/dtbs/broadcom" else "$out/dtbs"} - rm $dtbDir/bcm283*.dtb - copyDTB() { - cp -v "$dtbDir/$1" "$dtbDir/$2" - } - '' - + lib.optionalString (lib.elem stdenv.hostPlatform.system [ "armv6l-linux" ]) '' - copyDTB bcm2708-rpi-zero-w.dtb bcm2835-rpi-zero.dtb - copyDTB bcm2708-rpi-zero-w.dtb bcm2835-rpi-zero-w.dtb - copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-a.dtb - copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-b.dtb - copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-b-rev2.dtb - copyDTB bcm2708-rpi-b-plus.dtb bcm2835-rpi-a-plus.dtb - copyDTB bcm2708-rpi-b-plus.dtb bcm2835-rpi-b-plus.dtb - copyDTB bcm2708-rpi-b-plus.dtb bcm2835-rpi-zero.dtb - copyDTB bcm2708-rpi-cm.dtb bcm2835-rpi-cm.dtb - '' - + lib.optionalString (lib.elem stdenv.hostPlatform.system [ "armv7l-linux" ]) '' - copyDTB bcm2709-rpi-2-b.dtb bcm2836-rpi-2-b.dtb - '' - + - lib.optionalString - (lib.elem stdenv.hostPlatform.system [ - "armv7l-linux" - "aarch64-linux" - ]) - '' - copyDTB bcm2710-rpi-zero-2.dtb bcm2837-rpi-zero-2.dtb - copyDTB bcm2710-rpi-zero-2-w.dtb bcm2837-rpi-zero-2-w.dtb - copyDTB bcm2710-rpi-3-b.dtb bcm2837-rpi-3-b.dtb - copyDTB bcm2710-rpi-3-b-plus.dtb bcm2837-rpi-3-a-plus.dtb - copyDTB bcm2710-rpi-3-b-plus.dtb bcm2837-rpi-3-b-plus.dtb - copyDTB bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb - copyDTB bcm2711-rpi-4-b.dtb bcm2838-rpi-4-b.dtb - ''; + # The vendor kernel uses different DTB names (bcm2708/bcm2709/bcm2710) than what + # U-Boot expects (bcm2835/bcm2836/bcm2837). Starting with Pi 4, names match. + # See: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c + postFixup = lib.optionalString (rpiVersion < 4) ( + '' + dtbDir=${if stdenv.hostPlatform.isAarch64 then "$out/dtbs/broadcom" else "$out/dtbs"} + rm $dtbDir/bcm283*.dtb + copyDTB() { + cp -v "$dtbDir/$1" "$dtbDir/$2" + } + '' + + lib.optionalString (rpiVersion == 1) '' + copyDTB bcm2708-rpi-zero.dtb bcm2835-rpi-zero.dtb + copyDTB bcm2708-rpi-zero-w.dtb bcm2835-rpi-zero-w.dtb + copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-a.dtb + copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-b.dtb + copyDTB bcm2708-rpi-b.dtb bcm2835-rpi-b-rev2.dtb + copyDTB bcm2708-rpi-b-plus.dtb bcm2835-rpi-a-plus.dtb + copyDTB bcm2708-rpi-b-plus.dtb bcm2835-rpi-b-plus.dtb + copyDTB bcm2708-rpi-cm.dtb bcm2835-rpi-cm.dtb + '' + + lib.optionalString (rpiVersion == 2) '' + copyDTB bcm2709-rpi-2-b.dtb bcm2836-rpi-2-b.dtb + '' + + lib.optionalString (rpiVersion == 3) '' + copyDTB bcm2710-rpi-zero-2.dtb bcm2837-rpi-zero-2.dtb + copyDTB bcm2710-rpi-zero-2-w.dtb bcm2837-rpi-zero-2-w.dtb + copyDTB bcm2710-rpi-3-b.dtb bcm2837-rpi-3-b.dtb + copyDTB bcm2710-rpi-3-b-plus.dtb bcm2837-rpi-3-a-plus.dtb + copyDTB bcm2710-rpi-3-b-plus.dtb bcm2837-rpi-3-b-plus.dtb + copyDTB bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb + '' + ); } From e879889fe2271ff5ef071f149246b9922f6d90fe Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Wed, 8 Apr 2026 00:59:20 +0700 Subject: [PATCH 12/27] raspberry-pi/common/kernel: 6.12.47-stable_20250916 -> 6.12.75-1+rpt1 As mentioned in Nixpkgs PR [^1], Raspberry Pi folks stop tagging both raspberrypi/linux and raspberrypi/firmware GitHub repo. So, I switched my reference point to Raspberry Pi OS, which publishes their packaging for Linux kernel in RPi-Distro/linux-packaging. The version is set to Debian packaging's version, and the commit comes from the changelog entry for that version. The old code structure is somewhat kept in case Raspberry Pi ever tags their raspberrypi/linux repo again. [^1]: https://github.com/NixOS/nixpkgs/pull/493115 --- raspberry-pi/common/kernel.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index b579f7a8..19c93b6d 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -10,21 +10,22 @@ let # NOTE: raspberryPiWirelessFirmware should be updated with this - modDirVersion = "6.12.47"; - tag = "stable_20250916"; - hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0=="; + modDirVersion = "6.12.75"; + hash = "sha256-qrljd20n4tj/7C7gzNnxw7JIyEF2Ppf1PWm2a7vxh1w="; in (buildLinux ( args // { - version = "${modDirVersion}-${tag}"; + version = "${modDirVersion}-1+rpt1"; inherit modDirVersion; pname = "linux-rpi"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "linux"; - inherit tag hash; + # https://github.com/RPi-Distro/linux-packaging/raw/refs/tags/pios/1%256.12.75-1+rpt1/debian/changelog + rev = "89050b1059997d38d55462b323b099a6436dc10d"; + inherit hash; }; defconfig = From a5e3b25c4aca681237e377e2649d8914ffca8e44 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 4 May 2026 18:38:49 +0300 Subject: [PATCH 13/27] .#purism-librem-5r4-uboot: promote from a private package Co-Authored-By: Malix - Alix Brunet --- flake.nix | 1 + purism/librem/5r4/README.md | 2 +- purism/librem/5r4/u-boot/build.nix | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 purism/librem/5r4/u-boot/build.nix diff --git a/flake.nix b/flake.nix index 7821e968..060b14de 100644 --- a/flake.nix +++ b/flake.nix @@ -501,6 +501,7 @@ imx93-boot = (pkgs.callPackage ./nxp/imx93-evk/bsp/imx93-boot.nix { }).imx93-boot; imx8mp-boot = (pkgs.callPackage ./nxp/imx8mp-evk/bsp/imx8mp-boot.nix { }).imx8m-boot; imx8mq-boot = (pkgs.callPackage ./nxp/imx8mq-evk/bsp/imx8mq-boot.nix { }).imx8m-boot; + purism-librem-5r4-uboot = pkgs.callPackage ./purism/librem/5r4/u-boot { }; # Raspberry Pi kernels (aarch64-linux only) rpi2-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 2; }); rpi3-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 3; }); diff --git a/purism/librem/5r4/README.md b/purism/librem/5r4/README.md index be385e75..22211103 100644 --- a/purism/librem/5r4/README.md +++ b/purism/librem/5r4/README.md @@ -38,7 +38,7 @@ Note down this device path. [`u-boot`]: ./u-boot -Provided you have a way to build Nix derivations for `aarch64-linux` (like a remote builder, [binfmt emulation], or you're building it on the phone itself), just run `nix-build u-boot/build.nix`. +Provided you have a way to build Nix derivations for `aarch64-linux` (like a remote builder, [binfmt emulation], or you're building it on the phone itself), just run `nix build .#purism-librem-5r4-uboot` from the root of this repository. [binfmt emulation]: https://search.nixos.org/options?channel=22.11&show=boot.binfmt.emulatedSystems&from=0&size=50&sort=relevance&type=packages&query=binfmt diff --git a/purism/librem/5r4/u-boot/build.nix b/purism/librem/5r4/u-boot/build.nix deleted file mode 100644 index 91b79d96..00000000 --- a/purism/librem/5r4/u-boot/build.nix +++ /dev/null @@ -1 +0,0 @@ -with import { system = "aarch64-linux"; }; callPackage ./. { } From 554e00a5923d0183ef89aa1ebdffbb7564bfa034 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 3 May 2026 14:06:51 -0700 Subject: [PATCH 14/27] raspberry-pi: replace postConfigure sed hack with structuredExtraConfig Set CONFIG_LOCALVERSION via structuredExtraConfig instead of patching .config and auto.conf with sed after configure. The vendor defconfigs set -v7, -v8, -v8-16k which breaks modDirVersion. --- raspberry-pi/common/kernel.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index 614bdba4..3fc3e519 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -12,6 +12,7 @@ let # NOTE: raspberryPiWirelessFirmware should be updated with this modDirVersion = "6.12.75"; hash = "sha256-qrljd20n4tj/7C7gzNnxw7JIyEF2Ppf1PWm2a7vxh1w="; + inherit (lib.kernel) freeform; in (buildLinux ( args @@ -50,6 +51,12 @@ in request_key_helper ]; + structuredExtraConfig = { + # Vendor defconfigs set CONFIG_LOCALVERSION to -v7, -v8, -v8-16k, which + # breaks modDirVersion. Clear it. + LOCALVERSION = freeform ""; + }; + extraMeta = if (rpiVersion < 3) then { @@ -66,12 +73,6 @@ in // (args.argsOverride or { }) )).overrideAttrs { - postConfigure = '' - # The v7 defconfig has this set to '-v7' which screws up our modDirVersion. - sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' - sed -i $buildRoot/include/config/auto.conf -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' - ''; - # The vendor kernel uses different DTB names (bcm2708/bcm2709/bcm2710) than what # U-Boot expects (bcm2835/bcm2836/bcm2837). Starting with Pi 4, names match. # See: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c From 88cd2fa6e91cf3ea901df24f5516533b526b2c91 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 3 May 2026 14:07:16 -0700 Subject: [PATCH 15/27] raspberry-pi: match RPi vendor defconfigs in kernel config Override the nixpkgs common-config.nix values that conflict with the RPi vendor defconfigs. Without these the kernel config silently differs from the vendor defconfig. mkForce is used only on options where nixpkgs common-config sets a conflicting value at normal priority. Ref: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs --- raspberry-pi/common/kernel.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index 3fc3e519..6bf1d9d2 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -12,7 +12,7 @@ let # NOTE: raspberryPiWirelessFirmware should be updated with this modDirVersion = "6.12.75"; hash = "sha256-qrljd20n4tj/7C7gzNnxw7JIyEF2Ppf1PWm2a7vxh1w="; - inherit (lib.kernel) freeform; + inherit (lib.kernel) freeform yes no; in (buildLinux ( args @@ -51,10 +51,36 @@ in request_key_helper ]; + # Override nixpkgs common-config.nix defaults that conflict with the RPi vendor defconfigs. + # See: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs structuredExtraConfig = { # Vendor defconfigs set CONFIG_LOCALVERSION to -v7, -v8, -v8-16k, which # breaks modDirVersion. Clear it. LOCALVERSION = freeform ""; + + # RPi has 4 cores; nixpkgs common-config sets 384 + NR_CPUS = lib.mkForce (freeform "4"); + # nixpkgs sets 32MB; RPi vendor defconfig uses 5MB + CMA_SIZE_MBYTES = lib.mkForce (freeform "5"); + + # NFS root boot support (common RPi use case) + NFS_FS = lib.mkForce yes; + NFS_V4 = yes; + ROOT_NFS = yes; + IP_PNP = lib.mkForce yes; + IP_PNP_DHCP = yes; + IP_PNP_RARP = yes; + + # Match vendor defconfig: built-in instead of module + NET_CLS_BPF = lib.mkForce yes; + NLS_CODEPAGE_437 = lib.mkForce yes; + FB_SIMPLE = yes; + } + # arm64 vendor defconfigs (bcm2711, bcm2712) use full preempt; + # arm32 ones (bcmrpi, bcm2709) use voluntary preempt (nixpkgs default) + // lib.optionalAttrs (rpiVersion >= 3) { + PREEMPT = lib.mkForce yes; + PREEMPT_VOLUNTARY = lib.mkForce no; }; extraMeta = From ece5a2c7bdffdfd629676a6b2314d512cc9cddac Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 4 May 2026 18:08:50 +0300 Subject: [PATCH 16/27] nxp*: remove dead code --- nxp/common/bsp/imx-optee-os.nix | 79 --------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 nxp/common/bsp/imx-optee-os.nix diff --git a/nxp/common/bsp/imx-optee-os.nix b/nxp/common/bsp/imx-optee-os.nix deleted file mode 100644 index f920e1d7..00000000 --- a/nxp/common/bsp/imx-optee-os.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ - pkgs, -}: - -let - - pkgsCross = import { - crossSystem = { - config = "aarch64-unknown-linux-gnu"; - }; - }; - - outdir = "out/arm-plat-imx/core"; - python3 = pkgs.buildPackages.python3; - toolchain = pkgsCross.gcc9Stdenv.cc; - binutils = pkgsCross.gcc9Stdenv.cc.bintools.bintools_bin; - cpp = pkgs.buildPackages.gcc; - -in -pkgs.stdenv.mkDerivation { - - pname = "imx-optee-os"; - version = "5.15.32_2.0.0"; - - buildInputs = [ - python3 - ]; - - enableParallelBuilding = true; - - propagatedBuildInputs = with python3.pkgs; [ - pycryptodomex - pyelftools - cryptography - ]; - - src = fetchGit { - url = "https://github.com/nxp-imx/imx-optee-os.git"; - ref = "lf-5.15.32_2.0.0"; - }; - - postPatch = '' - substituteInPlace scripts/arm32_sysreg.py \ - --replace-fail '/usr/bin/env python3' '${python3}/bin/python' - substituteInPlace scripts/gen_tee_bin.py \ - --replace-fail '/usr/bin/env python3' '${python3}/bin/python' - substituteInPlace scripts/pem_to_pub_c.py \ - --replace-fail '/usr/bin/env python3' '${python3}/bin/python' - substituteInPlace ta/pkcs11/scripts/verify-helpers.sh \ - --replace-fail '/bin/bash' '${pkgs.bash}/bin/bash' - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))objcopy" ${binutils}/bin/${toolchain.targetPrefix}objcopy - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))objdump" ${binutils}/bin/${toolchain.targetPrefix}objdump - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))nm" ${binutils}/bin/${toolchain.targetPrefix}nm - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))readelf" ${binutils}/bin/${toolchain.targetPrefix}readelf - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))ar" ${binutils}/bin/${toolchain.targetPrefix}ar - substituteInPlace mk/gcc.mk \ - --replace-fail "\$(CROSS_COMPILE_\$(sm))cpp" "${cpp}/bin/${toolchain.targetPrefix}cpp" - ''; - - makeFlags = [ - "PLATFORM=imx" - "PLATFORM_FLAVOR=mx8qmmek" - "CFG_ARM64_core=y" - "CFG_TEE_TA_LOG_LEVEL=0" - "CFG_TEE_CORE_LOG_LEVEL=0" - "CROSS_COMPILE=${toolchain}/bin/${toolchain.targetPrefix}" - "CROSS_COMPILE64=${toolchain}/bin/${toolchain.targetPrefix}" - ]; - - installPhase = '' - mkdir -p $out - cp ${outdir}/tee-raw.bin $out/tee.bin - ''; -} From ae243122dd698069960df976ff282b5e01eb2062 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 5 May 2026 09:04:02 -0700 Subject: [PATCH 17/27] raspberry-pi: restore postConfigure sed for LOCALVERSION freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before #1841. Fixes #1859. --- raspberry-pi/common/kernel.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index 6bf1d9d2..154bf93e 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -54,10 +54,6 @@ in # Override nixpkgs common-config.nix defaults that conflict with the RPi vendor defconfigs. # See: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs structuredExtraConfig = { - # Vendor defconfigs set CONFIG_LOCALVERSION to -v7, -v8, -v8-16k, which - # breaks modDirVersion. Clear it. - LOCALVERSION = freeform ""; - # RPi has 4 cores; nixpkgs common-config sets 384 NR_CPUS = lib.mkForce (freeform "4"); # nixpkgs sets 32MB; RPi vendor defconfig uses 5MB @@ -99,6 +95,13 @@ in // (args.argsOverride or { }) )).overrideAttrs { + # TODO: Put CONFIG_LOCALVERSION in `structuredExtraConfig` above once this is resolved: + # https://github.com/NixOS/nixpkgs/issues/516936 + postConfigure = '' + sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' + sed -i $buildRoot/include/config/auto.conf -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' + ''; + # The vendor kernel uses different DTB names (bcm2708/bcm2709/bcm2710) than what # U-Boot expects (bcm2835/bcm2836/bcm2837). Starting with Pi 4, names match. # See: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c From 105c702c2e7a1307a8600cb84ffdbcc474a2a8c9 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 5 May 2026 14:03:11 -0700 Subject: [PATCH 18/27] raspberry-pi: wire config.txt module into common profile PR #1788 added hardware.raspberry-pi.configtxt and a defaults file, but nothing imported them, so the options had no effect. Import both from common/default.nix. Board profiles that already import common/ (2, 4, 5) now apply the pi-gen-equivalent defaults. --- raspberry-pi/common/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/raspberry-pi/common/default.nix b/raspberry-pi/common/default.nix index 11f2cfc7..f80e124b 100644 --- a/raspberry-pi/common/default.nix +++ b/raspberry-pi/common/default.nix @@ -1,4 +1,9 @@ { + imports = [ + ./config-txt.nix + ./config-txt-defaults.nix + ]; + boot.initrd.availableKernelModules = [ "usb-storage" "usbhid" From 7bd5ab3ee5541c47509ac6364d9ee06a5a873f9b Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 5 May 2026 14:03:19 -0700 Subject: [PATCH 19/27] raspberry-pi/3: import common profile The Pi 3 profile didn't import ../common/default.nix, so it skipped the shared boot.initrd.availableKernelModules (usb-storage, usbhid, vc4). Every other board profile imports common/. Bring Pi 3 in line. --- raspberry-pi/3/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raspberry-pi/3/default.nix b/raspberry-pi/3/default.nix index 333f2d3f..15dfee8d 100644 --- a/raspberry-pi/3/default.nix +++ b/raspberry-pi/3/default.nix @@ -1,6 +1,10 @@ { lib, pkgs, ... }: { + imports = [ + ../common/default.nix + ]; + boot = { kernelPackages = lib.mkDefault ( pkgs.linuxPackagesFor (pkgs.callPackage ../common/kernel.nix { rpiVersion = 3; }) From dfe5922604bb7ba17ecc5dad1c56dd9b50869b61 Mon Sep 17 00:00:00 2001 From: Mariappan Ramasamy <1221719+nappairam@users.noreply.github.com> Date: Fri, 1 May 2026 23:19:32 +0800 Subject: [PATCH 20/27] radxa/rock-3c: init Add hardware support module for Radxa Rock 3C SBC (Rockchip RK3566). - Introduces rockchip/rk3566 platform module exposing hardware.rockchip.rk3566.enable. - New radxa/rock-3c module enables radxa, rk3566, and defaults platformFirmware to pkgs.ubootRock3C. --- README.md | 1 + flake.nix | 1 + radxa/rock-3c/default.nix | 22 ++++++++++++++++++++++ rockchip/default.nix | 1 + rockchip/rk3566/default.nix | 18 ++++++++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 radxa/rock-3c/default.nix create mode 100644 rockchip/rk3566/default.nix diff --git a/README.md b/README.md index d7d3507a..761d44c4 100644 --- a/README.md +++ b/README.md @@ -437,6 +437,7 @@ See code for all available configurations. | [Purism Librem 13v3](purism/librem/13v3) | `` | `purism-librem-13v3` | | [Purism Librem 15v3](purism/librem/15v3) | `` | `purism-librem-15v3` | | [Purism Librem 5r4](purism/librem/5r4) | `` | `purism-librem-5r4` | +| [Radxa ROCK 3C](radxa/rock-3c) | `` | `radxa-rock-3c` | | [Radxa ROCK 4C+](radxa/rock-4c-plus) | `` | `rock-4c-plus` | | [Radxa ROCK 5 Model B](radxa/rock-5b) | `` | `rock-5b` | | [Radxa ROCK Pi 4](radxa/rock-pi-4) | `` | `rock-pi-4` | diff --git a/flake.nix b/flake.nix index 060b14de..2e8a513f 100644 --- a/flake.nix +++ b/flake.nix @@ -414,6 +414,7 @@ raspberry-pi-3 = import ./raspberry-pi/3; raspberry-pi-4 = import ./raspberry-pi/4; raspberry-pi-5 = import ./raspberry-pi/5; + radxa-rock-3c = import ./radxa/rock-3c; rock-4c-plus = import ./radxa/rock-4c-plus; rock-5b = import ./radxa/rock-5b; rock-pi-4 = import ./radxa/rock-pi-4; diff --git a/radxa/rock-3c/default.nix b/radxa/rock-3c/default.nix new file mode 100644 index 00000000..3bbd1df1 --- /dev/null +++ b/radxa/rock-3c/default.nix @@ -0,0 +1,22 @@ +{ + lib, + pkgs, + config, + ... +}: +{ + imports = [ + ../. + ../../rockchip + ]; + + config = { + hardware = { + radxa.enable = true; + rockchip = { + rk3566.enable = true; + platformFirmware = lib.mkDefault pkgs.ubootRock3C; + }; + }; + }; +} diff --git a/rockchip/default.nix b/rockchip/default.nix index f0195f9d..e031ec32 100644 --- a/rockchip/default.nix +++ b/rockchip/default.nix @@ -11,6 +11,7 @@ in imports = [ ./rk3328 ./rk3399 + ./rk3566 ./rk3588 ]; diff --git a/rockchip/rk3566/default.nix b/rockchip/rk3566/default.nix new file mode 100644 index 00000000..93f62cf9 --- /dev/null +++ b/rockchip/rk3566/default.nix @@ -0,0 +1,18 @@ +{ + lib, + pkgs, + config, + ... +}: +let + cfg = config.hardware.rockchip.rk3566; +in +{ + options.hardware.rockchip.rk3566 = { + enable = lib.mkEnableOption "Rockchip RK3566 support"; + }; + + config = lib.mkIf cfg.enable { + hardware.rockchip.enable = true; + }; +} From e315416e7b84ca8a5e1ce194e6c38618b0ed7184 Mon Sep 17 00:00:00 2001 From: Jasper Chan Date: Mon, 4 May 2026 11:12:07 -0700 Subject: [PATCH 21/27] raspberry/pi/4: disable compat checks when merging overlays --- raspberry-pi/4/apply-overlays-dtmerge.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/raspberry-pi/4/apply-overlays-dtmerge.nix b/raspberry-pi/4/apply-overlays-dtmerge.nix index ab6d5296..d40bcc49 100644 --- a/raspberry-pi/4/apply-overlays-dtmerge.nix +++ b/raspberry-pi/4/apply-overlays-dtmerge.nix @@ -27,17 +27,12 @@ with lib; | xargs -0 cp -v --no-preserve=mode --target-directory "$out" --parents 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 - test -z "$dtbCompat" && continue + fdtget -t s "$dtb" / compatible 2>/dev/null || continue ${flip (concatMapStringsSep "\n") overlays (o: '' - overlayCompat="$(fdtget -t s "${o.dtboFile}" / compatible)" - - # skip incompatible and non-matching overlays - if [[ ! "$dtbCompat" =~ "$overlayCompat" ]]; then - echo "Skipping overlay ${o.name}: incompatible with $(basename "$dtb")" - elif ${ + # skip non-matching overlays + if ${ if ((o.filter or null) == null) then "false" else From 50a9758cc00c3da9aae60d2a0d00775d72b72e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 14 May 2026 23:59:22 +0200 Subject: [PATCH 22/27] raspberry-pi/common: fix infinite recursion when building options.json --- raspberry-pi/common/config-txt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspberry-pi/common/config-txt.nix b/raspberry-pi/common/config-txt.nix index 59dbc75f..a3b5569e 100644 --- a/raspberry-pi/common/config-txt.nix +++ b/raspberry-pi/common/config-txt.nix @@ -95,7 +95,7 @@ in (attrsOf molecule) ]; in - attrsOf molecule; + attrsOf molecule // { description = "config.txt setting type"; }; default = { }; description = '' Structured configuration for the Raspberry Pi `config.txt` file. From 0a47268607fe15935f2de7ab3f27e3ff99cb8233 Mon Sep 17 00:00:00 2001 From: znmz <267793835+znmz@users.noreply.github.com> Date: Fri, 15 May 2026 12:43:28 +0300 Subject: [PATCH 23/27] chore: update old wiki links (nixos.wiki -> wiki.nixos.org) --- asus/fa506nc/README.md | 2 +- hp/probook/440G5/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asus/fa506nc/README.md b/asus/fa506nc/README.md index 80f904ee..0fe9347e 100644 --- a/asus/fa506nc/README.md +++ b/asus/fa506nc/README.md @@ -66,7 +66,7 @@ use on batter and which on power. ## More optimizations You may also want to enable thermald and powertop for the optimizations mentioned in -https://nixos.wiki/wiki/Laptop. +https://wiki.nixos.org/wiki/Laptop. ```nix services.thermald.enable = true; diff --git a/hp/probook/440G5/default.nix b/hp/probook/440G5/default.nix index 9bc0fc82..0fc940dd 100644 --- a/hp/probook/440G5/default.nix +++ b/hp/probook/440G5/default.nix @@ -2,7 +2,7 @@ { # https://www.intel.com/content/www/us/en/products/sku/124967/intel-core-i58250u-processor-6m-cache-up-to-3-40-ghz/specifications.html - # this one works: https://nixos.wiki/wiki/Accelerated_Video_Playback + # this one works: https://wiki.nixos.org/wiki/Accelerated_Video_Playback imports = [ ../../../common/cpu/intel/kaby-lake ../../../common/pc From 8db5dd4f1071336dfed4a135c0b3e5caaebfa794 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 16 May 2026 17:20:40 +0800 Subject: [PATCH 24/27] framework: 6.11 remove bluetooth workaround 6.11 is EOL, see: https://kernel.org/ The workaround, is no longer needed, see: https://github.com/FrameworkComputer/linux-docs/commit/ff5c08e826a6067cd1ac41f87a87ddda0c88532c Signed-off-by: Daniel Schaefer --- framework/12-inch/common/default.nix | 1 - framework/13-inch/common/default.nix | 1 - framework/16-inch/common/default.nix | 1 - framework/bluetooth.nix | 55 ---------------------------- 4 files changed, 58 deletions(-) delete mode 100644 framework/bluetooth.nix diff --git a/framework/12-inch/common/default.nix b/framework/12-inch/common/default.nix index 5e8aa81f..a8f4661f 100644 --- a/framework/12-inch/common/default.nix +++ b/framework/12-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ]; diff --git a/framework/13-inch/common/default.nix b/framework/13-inch/common/default.nix index d42a9f72..6a818c0d 100644 --- a/framework/13-inch/common/default.nix +++ b/framework/13-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ./audio.nix diff --git a/framework/16-inch/common/default.nix b/framework/16-inch/common/default.nix index 59f736d4..44f867f9 100644 --- a/framework/16-inch/common/default.nix +++ b/framework/16-inch/common/default.nix @@ -3,7 +3,6 @@ imports = [ ../../../common/pc/laptop ../../../common/pc/ssd - ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix ]; diff --git a/framework/bluetooth.nix b/framework/bluetooth.nix deleted file mode 100644 index 0e08adb7..00000000 --- a/framework/bluetooth.nix +++ /dev/null @@ -1,55 +0,0 @@ -# There is apparently a bug that affects Framework computers that causes black -# screen on resume from sleep or hibernate with kernel version 6.11. Framework -# have published a workaround; this applies that workaround. -# -# https://fosstodon.org/@frameworkcomputer/113406887743149089 -# https://github.com/FrameworkComputer/linux-docs/blob/main/hibernation/kernel-6-11-workarounds/suspend-hibernate-bluetooth-workaround.md#workaround-for-suspendhibernate-black-screen-on-resume-kernel-611 -{ - config, - lib, - pkgs, - ... -# TODO: drop this if linux 6.11 goes EOL -}: -lib.mkIf - ( - (config.boot.kernelPackages.kernelAtLeast "6.11") && (config.boot.kernelPackages.kernelOlder "6.12") - ) - { - systemd.services = { - bluetooth-rfkill-suspend = { - description = "Soft block Bluetooth on suspend/hibernate"; - before = [ "sleep.target" ]; - unitConfig.StopWhenUnneeded = true; - serviceConfig = { - Type = "oneshot"; - ExecStart = "${pkgs.util-linux}/bin/rfkill block bluetooth"; - ExecStartPost = "${pkgs.coreutils}/bin/sleep 3"; - RemainAfterExit = true; - }; - wantedBy = [ - "suspend.target" - "hibernate.target" - "suspend-then-hibernate.target" - ]; - }; - - bluetooth-rfkill-resume = { - description = "Unblock Bluetooth on resume"; - after = [ - "suspend.target" - "hibernate.target" - "suspend-then-hibernate.target" - ]; - serviceConfig = { - Type = "oneshot"; - ExecStart = "${pkgs.util-linux}/bin/rfkill unblock bluetooth"; - }; - wantedBy = [ - "suspend.target" - "hibernate.target" - "suspend-then-hibernate.target" - ]; - }; - }; - } From 3ee4d6d8a1d00f9751c158bc9764efa13c09551d Mon Sep 17 00:00:00 2001 From: David Ruth Date: Sat, 25 Apr 2026 23:57:31 -0400 Subject: [PATCH 25/27] google/brya: Add support for brya Chromebooks. These Chromebooks are laptops with ssds based on alder-lake platforms. --- README.md | 1 + flake.nix | 1 + google/brya/default.nix | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 google/brya/default.nix diff --git a/README.md b/README.md index d7d3507a..d42e3e8e 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,7 @@ See code for all available configurations. | [GPD WIN Max 2 2023](gpd/win-max-2/2023) | `` | `gpd-win-max-2-2023` | | [GPD WIN Mini 2024](gpd/win-mini/2024) | `` | `gpd-win-mini-2024` | | [Google Pixelbook](google/pixelbook) | `` | `google-pixelbook` | +| [Google Brya](google/brya) | `` | `google-brya` | | [HP Elitebook 2560p](hp/elitebook/2560p) | `` | `hp-elitebook-2560p` | | [HP Elitebook 830g6](hp/elitebook/830/g6) | `` | `hp-elitebook-830g6` | | [HP Elitebook 845g7](hp/elitebook/845/g7) | `` | `hp-elitebook-845g7` | diff --git a/flake.nix b/flake.nix index 060b14de..221aa4dc 100644 --- a/flake.nix +++ b/flake.nix @@ -192,6 +192,7 @@ gigabyte-b650 = import ./gigabyte/b650; gmktec-nucbox-g3-plus = import ./gmktec/nucbox/g3-plus; google-pixelbook = import ./google/pixelbook; + google-brya = import ./google/brya; gpd-micropc = import ./gpd/micropc; gpd-p2-max = import ./gpd/p2-max; gpd-pocket-3 = import ./gpd/pocket-3; diff --git a/google/brya/default.nix b/google/brya/default.nix new file mode 100644 index 00000000..3f38c2b1 --- /dev/null +++ b/google/brya/default.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + imports = [ + ../../common/pc/laptop + ../../common/pc/ssd + ../../common/cpu/intel/alder-lake + ]; +} From b16dff6d150e4471bb232cbf6eb10b452682eb10 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 16 May 2026 17:37:31 +0800 Subject: [PATCH 26/27] framework: audio tuning is for classic chassis only Signed-off-by: Daniel Schaefer --- framework/13-inch/common/{audio.nix => classic-audio.nix} | 3 ++- framework/13-inch/common/default.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename framework/13-inch/common/{audio.nix => classic-audio.nix} (98%) diff --git a/framework/13-inch/common/audio.nix b/framework/13-inch/common/classic-audio.nix similarity index 98% rename from framework/13-inch/common/audio.nix rename to framework/13-inch/common/classic-audio.nix index 7010c35a..db60c52b 100644 --- a/framework/13-inch/common/audio.nix +++ b/framework/13-inch/common/classic-audio.nix @@ -24,7 +24,8 @@ in - Equalizer - Slight compression - This option has been optimised for the Framework Laptop 13 AMD 7040 series, but should work on all models. + This option has been optimised for the classic Framework Laptop 13 chassis/speakers. + Framework Laptop 13 Pro needs different tuning. Before applying, ensure the speakers are set to 100%, because the volumes compound and the raw speaker device will be hidden by default. diff --git a/framework/13-inch/common/default.nix b/framework/13-inch/common/default.nix index d42a9f72..fedbeb0e 100644 --- a/framework/13-inch/common/default.nix +++ b/framework/13-inch/common/default.nix @@ -6,7 +6,7 @@ ../../bluetooth.nix ../../kmod.nix ../../framework-tool.nix - ./audio.nix + ./classic-audio.nix ]; # Fix TRRS headphones missing a mic From 6cfa598d538a2afcb34b083d14beed1972bf9f2b Mon Sep 17 00:00:00 2001 From: David Ruth Date: Sun, 26 Apr 2026 18:23:30 -0400 Subject: [PATCH 27/27] google/rex: Add support for rex Chromebooks. These Chromebooks are laptops with ssds based on meteor-lake platforms. --- README.md | 1 + flake.nix | 1 + google/rex/default.nix | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 google/rex/default.nix diff --git a/README.md b/README.md index d42e3e8e..94cdbe0f 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,7 @@ See code for all available configurations. | [GPD WIN Mini 2024](gpd/win-mini/2024) | `` | `gpd-win-mini-2024` | | [Google Pixelbook](google/pixelbook) | `` | `google-pixelbook` | | [Google Brya](google/brya) | `` | `google-brya` | +| [Google Rex](google/rex) | `` | `google-rex` | | [HP Elitebook 2560p](hp/elitebook/2560p) | `` | `hp-elitebook-2560p` | | [HP Elitebook 830g6](hp/elitebook/830/g6) | `` | `hp-elitebook-830g6` | | [HP Elitebook 845g7](hp/elitebook/845/g7) | `` | `hp-elitebook-845g7` | diff --git a/flake.nix b/flake.nix index 221aa4dc..5d6befcc 100644 --- a/flake.nix +++ b/flake.nix @@ -193,6 +193,7 @@ gmktec-nucbox-g3-plus = import ./gmktec/nucbox/g3-plus; google-pixelbook = import ./google/pixelbook; google-brya = import ./google/brya; + google-rex = import ./google/rex; gpd-micropc = import ./gpd/micropc; gpd-p2-max = import ./gpd/p2-max; gpd-pocket-3 = import ./gpd/pocket-3; diff --git a/google/rex/default.nix b/google/rex/default.nix new file mode 100644 index 00000000..9a7a08e9 --- /dev/null +++ b/google/rex/default.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + imports = [ + ../../common/pc/laptop + ../../common/pc/ssd + ../../common/cpu/intel/meteor-lake + ]; +}