power-management

This commit is contained in:
Daniel Langbein 2023-12-21 18:21:12 +01:00
parent db9c83fd09
commit c3f0c4c68b
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/power-management.nix
../../modules/ntfs.nix ../../modules/ntfs.nix
../../modules/git.nix ../../modules/git.nix
../../modules/zsh.nix ../../modules/zsh.nix

View File

@ -6,6 +6,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/power-management.nix
../../modules/ntfs.nix ../../modules/ntfs.nix
../../modules/git.nix ../../modules/git.nix
../../modules/zsh.nix ../../modules/zsh.nix

View File

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
{
# Power savings.
# Reference: https://www.reddit.com/r/linux/comments/150h0k1/comment/js4p6px/
# Whether to enable powertop auto tuning on startup.
# This executes `powertop --auto-tune`.
powerManagement.powertop.enable = true;
# SCSI link power management policy. The kernel default is “max_performance”.
powerManagement.scsiLinkPolicy = "med_power_with_dipm";
}