File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ See code for all available configurations.
364
364
| [ Microsoft Surface Pro 9] ( microsoft/surface-pro/9 ) | ` <nixos-hardware/microsoft/surface-pro/9> ` | ` microsoft-surface-pro-9 ` |
365
365
| [ Morefine M600] ( morefine/m600 ) | ` <nixos-hardware/morefine/m600> ` | ` morefine-m600 ` |
366
366
| [ Minisforum V3] ( minisforum/v3 ) | ` <nixos-hardware/minisforum/v3> ` | ` minisforum-v3 ` |
367
+ | [ MECHREVO Yilong15Pro] ( mechrevo/GM5HG0A ) | ` <nixos-hardware/mechrevo/GM5HG0A> ` | ` mechrevo-gm5hg0a ` |
367
368
| [ NXP iMX8 MPlus Evaluation Kit] ( nxp/imx8mp-evk ) | ` <nixos-hardware/nxp/imx8mp-evk> ` | ` nxp-imx8mp-evk ` |
368
369
| [ NXP iMX8 MQuad Evaluation Kit] ( nxp/imx8mq-evk ) | ` <nixos-hardware/nxp/imx8mq-evk> ` | ` nxp-imx8mq-evk ` |
369
370
| [ Hardkernel Odroid HC4] ( hardkernel/odroid-hc4/default.nix ) | ` <nixos-hardware/hardkernel/odroid-hc4> ` | ` hardkernel-odroid-hc4 ` |
Original file line number Diff line number Diff line change 290
290
lenovo-yoga-7-slim-gen8 = import ./lenovo/yoga/7/slim/gen8 ;
291
291
letsnote-cf-lx4 = import ./panasonic/letsnote/cf-lx4 ;
292
292
malibal-aon-s1-intel = import ./malibal/aon/s1 ;
293
+ mechrevo-gm5hg0a = import ./mechrevo/GM5HG0A ;
293
294
microchip-icicle-kit = import ./microchip/icicle-kit ;
294
295
microsoft-surface-go = import ./microsoft/surface/surface-go ;
295
296
microsoft-surface-pro-intel = import ./microsoft/surface/surface-pro-intel ;
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ pkgs ,
4
+ config ,
5
+ ...
6
+ } :
7
+ {
8
+ imports = [
9
+ ../../common/cpu/amd/pstate.nix
10
+ ../../common/cpu/amd/zenpower.nix
11
+ ../../common/cpu/amd/raphael/igpu.nix
12
+ ../../common/gpu/amd
13
+ ../../common/gpu/nvidia/ada-lovelace
14
+ ../../common/gpu/nvidia/prime.nix
15
+ ../../common/hidpi.nix
16
+ ../../common/pc/laptop
17
+ ../../common/pc/ssd
18
+ ] ;
19
+
20
+ # Resolve the issue of sleep mode being awakened by GPIO 6.
21
+ # https://nova.gal/blog/%E6%9C%BA%E6%A2%B0%E9%9D%A9%E5%91%BD%E7%BF%BC%E9%BE%99-15Pro-%E8%BF%81%E7%A7%BB-Linux-%E9%81%87%E5%88%B0%E7%9A%84%E4%B8%80%E4%BA%9B%E9%97%AE%E9%A2%98#%E6%97%A0%E6%B3%95%E4%BC%91%E7%9C%A0
22
+ # https://lore.kernel.org/all/[email protected] /T/
23
+ boot . kernelParams = [ "gpiolib_acpi.ignore_interrupt=AMDI0030:00@6" ] ;
24
+
25
+ # AMD has better battery life with PPD over TLP:
26
+ # https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
27
+ services . power-profiles-daemon . enable = lib . mkDefault true ;
28
+
29
+ hardware . nvidia = {
30
+ primeBatterySaverSpecialisation = lib . mkDefault true ;
31
+ modesetting . enable = lib . mkDefault true ;
32
+ prime = {
33
+ amdgpuBusId = "PCI:6:0:0" ;
34
+ nvidiaBusId = "PCI:1:0:0" ;
35
+ } ;
36
+ } ;
37
+ }
You can’t perform that action at this time.
0 commit comments