surface: Add powerManagement

This commit is contained in:
PapaTutuWawa 2021-09-05 13:26:29 +02:00
parent e93bb344a8
commit 8b136b0368
2 changed files with 7 additions and 3 deletions

View File

@ -15,7 +15,7 @@ in mkHost config {
wireless = true;
wifiInterface = "wlp1s0";
programImports = [
"zsh" "git" "mpv" "tmux" "firefox" "gnome-terminal" "gnome" "i18n"
"zsh" "git" "mpv" "tmux" "firefox" "gnome-terminal" "gnome" "i18n" "xournalpp"
"distributed-build/offload.nix"
];
fileSystems = {
@ -34,8 +34,6 @@ in mkHost config {
}
];
extraOptions = old: {
networking.wireless.enable = true;
hardware.video.hidpi.enable = true;
boot = {
kernelParams = [ "mem_sleep_default=deep" ];
extraModprobeConfig = ''

View File

@ -16,6 +16,12 @@ in {
[Config]
BlockOnPalm = true
'';
powerManagement = {
enable = true;
cpuFreqGovernor = "powersave";
};
hardware.video.hidpi.enable = true;
systemd.services.iptsd = {
description = "Userspace daemon for Intel Precise Touch & Stylus";