common/pc/laptop: drop explicit vm.laptop_mode
This is handled by TLP, so we don't need to set that explicitly.
This commit is contained in:
parent
b1304963c8
commit
5a00ea423a
|
@ -1,16 +1,13 @@
|
||||||
{ lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ../. ];
|
imports = [ ../. ];
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
|
||||||
"vm.laptop_mode" = lib.mkDefault 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: fix in NixOS/nixpkgs
|
# TODO: fix in NixOS/nixpkgs
|
||||||
# Disable governor set in hardware-configuration.nix,
|
# Disable governor set in hardware-configuration.nix,
|
||||||
# required when services.tlp.enable is true:
|
# required when services.tlp.enable is true:
|
||||||
powerManagement.cpuFreqGovernor = lib.mkForce null;
|
powerManagement.cpuFreqGovernor =
|
||||||
|
lib.mkIf config.services.tlp.enable (lib.mkForce null);
|
||||||
|
|
||||||
services.tlp.enable = lib.mkDefault true;
|
services.tlp.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue