Compare commits

..

37 commits
main ... bump

Author SHA1 Message Date
8bd7972c74 bump to 6.15-rc4 2025-04-29 10:10:52 +02:00
465bfd5d45 bump to 6.15-rc3 2025-04-25 11:56:35 +02:00
66640a57be bump to 6.15-rc2 2025-04-16 12:56:21 +02:00
c15672e260 bump to 6.15-rc1 2025-04-07 20:53:04 +02:00
f4591e4478 bump to 6.14 2025-03-29 11:43:37 +01:00
7a10b19edc bump to 6.14-rc7 2025-03-17 15:26:40 +01:00
4b33de16a0 bump to 6.14-rc5 2025-03-10 11:21:04 +01:00
df9d37e84a kernel: ignore config errors 2025-02-28 22:57:22 +01:00
3201095d3d use upstream nixpkgs 2025-02-28 22:01:51 +01:00
b12e6ec3ac bump to 6.14-rc4 2025-02-28 22:01:39 +01:00
4736fc5861 feat: bump to 6.14-rc3 2025-02-17 15:54:59 +01:00
6784c72db5 feat: bump to 6.14-rc2 2025-02-11 12:37:53 +01:00
fe236e55c5 feat: bump to 6.13 2025-01-24 22:20:54 +01:00
00a940407a feat: bump to 6.13-rc7 2025-01-16 10:53:11 +01:00
743ad5409e feat: bump to 6.13-rc6 2025-01-10 14:22:25 +01:00
5583f444c6 Revert "add linux usb patch"
This reverts commit 3c79ed01fb.
2024-12-23 15:00:07 +01:00
483f41c278 feat: bump to 6.13-rc4 2024-12-23 14:54:55 +01:00
3c79ed01fb add linux usb patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e9b8ffafd20ad21357a789cc58ffaa162b3ad074
2024-12-21 22:01:44 +01:00
77c000d82d chore: bump jhovold sources to 6.13-rc3 2024-12-18 11:16:57 +01:00
c95058f8aa feat(flake): jhovold linux 6.13-rc1 -> 6.13-rc2 2024-12-10 19:29:45 +01:00
b116d698f4 fix(nixpkgs): use fork with cpupower fix 2024-12-05 11:07:42 +01:00
80d92e5c1f fix(example): set bluetoothMac 2024-12-05 11:07:30 +01:00
4ad2bf71ca refactor: add overlay stub 2024-12-05 11:07:07 +01:00
46229fc2b9 feat: add (misisng) bluetooth-firmware files 2024-12-05 10:15:22 +01:00
0727184585 chore: bump flake inputs 2024-12-05 10:15:16 +01:00
6f09467241 remove efi=noruntime as it's not required anymore according to jhovold 2024-12-05 09:54:23 +01:00
887d0550a7 bump to 6.13-rc1 2024-12-05 09:54:00 +01:00
01295d13ce feat: bump jhovold/linux to 6.12 2024-11-26 10:10:50 +01:00
b78fc5d593 chore: bump uefi to 1.61.1 2024-11-16 23:31:38 +01:00
b957608c2a chore: bump kernel to 6.12-rc7 2024-11-16 22:49:40 +01:00
b74e8bfe82 feat: bump linux-jhovold -> 6.12-rc6 2024-11-08 22:25:50 +01:00
ff41877fbd feat: bump kernel to 6.12-rc5 2024-10-29 16:17:19 +01:00
13748008ae don't use regulator_ignore_unused 2024-10-26 19:21:24 +02:00
5951832660 feat: bump jhovold to 6.12-rc4 2024-10-26 18:13:12 +02:00
1166c321f8 fix(packages/linux_jhovold): pad version to produce valid modVersion 2024-10-22 09:22:31 +02:00
cfbc504653 feat: bump jhovold to 6.12-rc3 2024-10-21 22:59:00 +02:00
6e515f7988 feat: automatically parse jhovold's kernel version 2024-10-21 22:58:32 +02:00
5 changed files with 95 additions and 24 deletions

48
flake.lock generated
View file

@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1725234343, "lastModified": 1733312601,
"narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -21,27 +21,27 @@
"linux-jhovold": { "linux-jhovold": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1728631036, "lastModified": 1745847827,
"narHash": "sha256-1LnClVjY6WS+IR9eqPFA7gzXm0cio3mY23NXj9cKHHs=", "narHash": "sha256-ewM7Rpd6On6ys3OkcWOtR7TNWSRZRLZpRP7L9syhn6s=",
"owner": "jhovold", "owner": "jhovold",
"repo": "linux", "repo": "linux",
"rev": "6a97bc22fa36010400b91e6d5979741c391112c3", "rev": "1786db28b335abb5a0fa1e8a27e9950a73f64acf",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "jhovold", "owner": "jhovold",
"ref": "wip/sc8280xp-6.12-rc2", "ref": "wip/sc8280xp-6.15-rc4",
"repo": "linux", "repo": "linux",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725432240, "lastModified": 1740560979,
"narHash": "sha256-+yj+xgsfZaErbfYM3T+QvEE2hU7UuE+Jf0fJCJ8uPS0=", "narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ad416d066ca1222956472ab7d0555a6946746a80", "rev": "5135c59491985879812717f4c9fea69604e7f26f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -53,21 +53,39 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1725233747, "lastModified": 1733096140,
"narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "narHash": "sha256-1qRH7uAUsyQI7R1Uwl4T+XvdNv778H0Nb5njNrqvylY=",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" "url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" "url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"linux-jhovold": "linux-jhovold", "linux-jhovold": "linux-jhovold",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"x13s-bt-linux-firmware": "x13s-bt-linux-firmware"
}
},
"x13s-bt-linux-firmware": {
"flake": false,
"locked": {
"lastModified": 1733240564,
"narHash": "sha256-348f+wuX7x8xqaBRkraTclupdnRcwL/z2l/1Bs/reXc=",
"ref": "refs/heads/main",
"rev": "06aea4d8bfd5ca3624b56162b24339d7b0449913",
"revCount": 4282,
"type": "git",
"url": "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
},
"original": {
"rev": "06aea4d8bfd5ca3624b56162b24339d7b0449913",
"type": "git",
"url": "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
} }
} }
}, },

View file

@ -3,8 +3,33 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
linux-jhovold.url = "github:jhovold/linux/wip/sc8280xp-6.12-rc2"; linux-jhovold.url = "github:jhovold/linux/wip/sc8280xp-6.15-rc4";
linux-jhovold.flake = false; linux-jhovold.flake = false;
x13s-bt-linux-firmware = {
flake = false;
# 2024-12-05 now required by jhovold's (and soon mainline) kernel. need two files from here: hpnv21.b8c hpnv21g.b8c
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qca/hpnv21.b8c?id=8d24066f829b97966818fd0d9b5881190670f53f";
url = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git?rev=06aea4d8bfd5ca3624b56162b24339d7b0449913";
# revisions for this file: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/qca/hpbtfw21.tlv
# 2024-07-29
# not working well
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qca/hpbtfw21.tlv?id=d118dc8ad5562ac0ae0c07be748cbe35a9361b47";
# 2024-05-30
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qca/hpbtfw21.tlv?id=436b0a920352d13290043d9ec9e50c420ab10f92";
# 2023-12-18
# not working well
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qca/hpbtfw21.tlv?id=598f5bd22361d7e92eebe8452d1f8013a1d35b9a";
# 2013-01-17
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qca/hpbtfw21.tlv?id=2ba1beaae0c649ce8a50baecc8df9e81cd524e65";
};
}; };
outputs = outputs =
@ -21,8 +46,18 @@
]; ];
perSystem = perSystem =
{ pkgs, ... }: { pkgs, inputs' , system, lib, ... }:
{ {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(final: prev: {
# overlay here
})
];
config = { };
};
devShells = rec { devShells = rec {
default = pkgs.mkShellNoCC { packages = ci.nativeBuildInputs; }; default = pkgs.mkShellNoCC { packages = ci.nativeBuildInputs; };
@ -61,6 +96,8 @@
nixos-x13s.enable = true; nixos-x13s.enable = true;
nixos-x13s.kernel = "jhovold"; # jhovold is default nixos-x13s.kernel = "jhovold"; # jhovold is default
nixos-x13s.bluetoothMac = "02:68:b3:29:da:98";
# allow unfree firmware # allow unfree firmware
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View file

@ -28,6 +28,7 @@ let
paths = [ paths = [
modulesClosure modulesClosure
x13sPackages.graphics-firmware x13sPackages.graphics-firmware
x13sPackages.bluetooth-firmware
]; ];
}; };
in in
@ -53,7 +54,10 @@ in
environment.systemPackages = [ pkgs.efibootmgr ]; environment.systemPackages = [ pkgs.efibootmgr ];
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.firmware = lib.mkBefore [ x13sPackages.graphics-firmware ]; hardware.firmware = lib.mkBefore [
x13sPackages.graphics-firmware
x13sPackages.bluetooth-firmware
];
boot = { boot = {
initrd.systemd.enable = true; initrd.systemd.enable = true;
@ -74,11 +78,10 @@ in
"dtb=${dtbEfiPath}" "dtb=${dtbEfiPath}"
# jhovold recommended # jhovold recommended
"efi=noruntime"
"clk_ignore_unused" "clk_ignore_unused"
"pd_ignore_unused" "pd_ignore_unused"
"arm64.nopauth" "arm64.nopauth"
"regulator_ignore_unused" # allows for > 30 sec to load msm, at the potential cost of power # "regulator_ignore_unused" # allows for > 30 sec to load msm, at the potential cost of power
]; ];
initrd = { initrd = {

View file

@ -20,13 +20,19 @@ let
}; };
extraMeta.branch = lib.versions.majorMinor version; extraMeta.branch = lib.versions.majorMinor version;
ignoreConfigErrors = true;
} }
); );
in in
{ {
linux_jhovold = pkgs.callPackage linux_x13s_pkg { linux_jhovold = pkgs.callPackage linux_x13s_pkg {
src = inputs.linux-jhovold; src = inputs.linux-jhovold;
version = "6.12.0-rc2"; version = let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
original = builtins.elemAt (builtins.tail (builtins.split "xp-" lock.nodes.linux-jhovold.original.ref)) 1;
modVersion = lib.versions.pad 3 original;
in modVersion;
defconfig = "johan_defconfig"; defconfig = "johan_defconfig";
}; };
@ -42,4 +48,9 @@ in
${lib.getExe pkgs.innoextract} ${gpu-src} ${lib.getExe pkgs.innoextract} ${gpu-src}
cp -v code\$GetExtractPath\$/*/*.mbn "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX/" cp -v code\$GetExtractPath\$/*/*.mbn "$out/lib/firmware/qcom/sc8280xp/LENOVO/21BX/"
''; '';
bluetooth-firmware = pkgs.runCommand "x13s-bluetooth-firmware" { } ''
mkdir -p $out/lib/firmware/qca
cp -v ${inputs.x13s-bt-linux-firmware}/qca/{hpnv21.b8c,hpnv21g.b8c} $out/lib/firmware/qca/
'';
} }

View file

@ -1,3 +1,5 @@
# https://support.lenovo.com/us/en/downloads/ds556845-bios-update-utility-bootable-cd-for-windows-11-thinkpad-x13s-gen-1-type-21bx-21by
{ {
stdenv, stdenv,
fetchurl, fetchurl,
@ -6,11 +8,11 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "uefi"; name = "uefi";
version = "1.60"; version = "1.61";
src = fetchurl { src = fetchurl {
url = "https://download.lenovo.com/pccbbs/mobiles/n3huj19w.exe"; url = "https://download.lenovo.com/pccbbs/mobiles/n3huj20w.exe";
hash = "sha256-ZSjkvbMb0e9CoL2OYo3Aioyz3or1YkOX/BdOOeAuL7I="; hash = "sha256-A3l/ZfIbFcvFX+bMWYgpW+1kkYPu5MQkuTCgszhaoIY=";
}; };
nativeBuildInputs = [ innoextract ]; nativeBuildInputs = [ innoextract ];