Skip to content

Commit cdeb071

Browse files
committed
add yoga bootstrap code
1 parent d3afabf commit cdeb071

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

bootstrap/lenovo-yoga-s7-pro.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{ pkgs ? import ../nix/default.nix { } }:
2+
let
3+
4+
in
5+
{
6+
isoGnome = (pkgs.nixos {
7+
imports = [
8+
({ config, modulesPath, pkgs, ... }: {
9+
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-graphical-gnome.nix") ];
10+
boot.kernelModules = [
11+
"rtw89"
12+
];
13+
14+
nixpkgs.overlays = [
15+
(self: super: {
16+
linux_latest = super.linux_latest.override {
17+
extraConfig = ''
18+
THINKPAD_ACPI_DEBUG y
19+
'';
20+
};
21+
})
22+
];
23+
24+
boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ];
25+
26+
27+
boot.kernelPackages = (pkgs.linuxPackagesFor pkgs.linux_latest).extend (self: super: {
28+
rtw89 = self.rtw88.overrideAttrs (_: {
29+
pname = "rtw89";
30+
version = "unstable";
31+
src = pkgs.fetchFromGitHub {
32+
owner = "lwfinger";
33+
repo = "rtw89";
34+
rev = "fe961ee01e9210d21c4ded7ccf009a8823a1364e";
35+
sha256 = "0lxfdjyrlyz8r1y8sqk7lg463gi6bhbk4fh8f69kwwg4cdbhas6m";
36+
};
37+
});
38+
});
39+
})
40+
];
41+
}).config.system.build.isoImage;
42+
}

0 commit comments

Comments
 (0)