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

View File

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