surface: Add more tweaks from linux-surface
This commit is contained in:
parent
18caa31652
commit
119d3a2a0f
@ -35,7 +35,7 @@ in mkHost config {
|
||||
];
|
||||
extraOptions = old: {
|
||||
boot = {
|
||||
kernelParams = [ "mem_sleep_default=deep" ];
|
||||
kernelParams = [ "mem_sleep_default=deep" "kernel.nmi_watchdog=0" "vm.dirty_writeback_centisecs=1500" ];
|
||||
extraModprobeConfig = ''
|
||||
options i915 enable_fbc=1 enable_rc6=1 modeset=1
|
||||
options snd_hda_intel power_save=1
|
||||
|
@ -12,10 +12,16 @@ let
|
||||
};
|
||||
};
|
||||
in {
|
||||
environment.etc."ipts.conf".text = ''
|
||||
[Config]
|
||||
BlockOnPalm = true
|
||||
'';
|
||||
environment.etc = {
|
||||
"ipts.conf".text = ''
|
||||
[Config]
|
||||
BlockOnPalm = true
|
||||
'';
|
||||
"thermald/thermal-cpu-cdev-order.xml".source = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/contrib/thermald/surface_pro_5/thermal-conf.xml.auto.mobile";
|
||||
sha256 = "1wsrgad6k4haw4m0jjcjxhmj4742kcb3q8rmfpclbw0czm8384al";
|
||||
}
|
||||
};
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
@ -34,7 +40,16 @@ in {
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ iptsd surface-control ];
|
||||
services.udev.packages = with pkgs; [ iptsd surface-control ];
|
||||
services = {
|
||||
udev.packages = with pkgs; [ iptsd surface-control ];
|
||||
thermald = {
|
||||
enable = true;
|
||||
configFile = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/contrib/thermald/thermal-conf.xml";
|
||||
sha256 = "1xj70n9agy41906jgm4yjmsx58i7pzsizpvv3rkzq78k95qjfmc9";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_5_13;
|
||||
|
Loading…
Reference in New Issue
Block a user