surface: Add powerManagement
This commit is contained in:
parent
e93bb344a8
commit
8b136b0368
@ -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 = ''
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user