surface: Add more tweaks from linux-surface
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user