From 8b136b0368786e6087b2b35e6b6ff9db207b14b7 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 5 Sep 2021 13:26:29 +0200 Subject: [PATCH] surface: Add powerManagement --- hosts/mashu.nix | 4 +--- modules/hardware/surface-pro6.nix | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hosts/mashu.nix b/hosts/mashu.nix index 31cb8cb..245cdb0 100644 --- a/hosts/mashu.nix +++ b/hosts/mashu.nix @@ -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 = '' diff --git a/modules/hardware/surface-pro6.nix b/modules/hardware/surface-pro6.nix index 931ec29..3fd1a1c 100644 --- a/modules/hardware/surface-pro6.nix +++ b/modules/hardware/surface-pro6.nix @@ -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";