Skip to content

Commit a3f6344

Browse files
rumlenordstroemmergify[bot]
authored andcommitted
added lenovo thinkpad p43s
1 parent be7794e commit a3f6344

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
lenovo-thinkpad-p14s-intel-gen5 = import ./lenovo/thinkpad/p14s/intel/gen5;
193193
lenovo-thinkpad-p16s-amd-gen1 = import ./lenovo/thinkpad/p16s/amd/gen1;
194194
lenovo-thinkpad-p16s-amd-gen2 = import ./lenovo/thinkpad/p16s/amd/gen2;
195+
lenovo-thinkpad-p43s = import ./lenovo/thinkpad/p43s;
195196
lenovo-thinkpad-p50 = import ./lenovo/thinkpad/p50;
196197
lenovo-thinkpad-p51 = import ./lenovo/thinkpad/p51;
197198
lenovo-thinkpad-p52 = import ./lenovo/thinkpad/p52;

lenovo/thinkpad/p43s/default.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{ lib, config, ... }: {
2+
imports = [
3+
../.
4+
../../../common/cpu/intel
5+
../../../common/pc/laptop/ssd
6+
../../../common/gpu/nvidia/pascal
7+
../../../common/gpu/nvidia/prime-sync.nix
8+
];
9+
10+
hardware = {
11+
graphics.enable = lib.mkDefault true;
12+
13+
nvidia = {
14+
prime = {
15+
intelBusId = lib.mkDefault "PCI:0:2:0";
16+
nvidiaBusId = lib.mkDefault "PCI:60:0:0";
17+
};
18+
19+
powerManagement.enable = lib.mkDefault config.hardware.nvidia.prime.sync.enable;
20+
};
21+
};
22+
}

0 commit comments

Comments
 (0)