Skip to content

Commit 01f1548

Browse files
sebaszvmergify[bot]
authored andcommitted
lenovo/thinkpad/x13s: source kernel through config instead of pkgs
The previous implementation was sourcing the kernel through `pkgs.linux`, which is only representative of the final system if `boot.kernelPackages` is left as the default value of `pkgs.linuxPackages`. You can of course change this to other package sets, such as `pkgs.linuxPackages_latest`. Instead, we now reference the kernel through `config.boot.kernelPackages.kernel`.
1 parent 6e80224 commit 01f1548

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lenovo/thinkpad/x13s/default.nix

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, pkgs, ... }:
22

33
let
4+
inherit (config.boot.kernelPackages) kernel;
5+
46
dtbName = "sc8280xp-lenovo-thinkpad-x13s.dtb";
5-
dtb = "${pkgs.linux}/dtbs/qcom/${dtbName}";
7+
dtb = "${kernel}/dtbs/qcom/${dtbName}";
68
# Version the dtb based on the kernel
7-
dtbEfiPath = "dtbs/x13s-${pkgs.linux.version}.dtb";
9+
dtbEfiPath = "dtbs/x13s-${kernel.version}.dtb";
810
cfg = {
911
wifiMac = "e4:65:38:52:22:a9";
1012
bluetoothMac = "E4:25:18:22:44:AA";

0 commit comments

Comments
 (0)