mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
power-management
This commit is contained in:
parent
db9c83fd09
commit
c3f0c4c68b
@ -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
|
||||||
|
@ -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
|
||||||
|
12
modules/power-management.nix
Normal file
12
modules/power-management.nix
Normal 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";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user