1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-16 07:59:41 +01:00
nixos-hardware/common/pc/laptop/default.nix
Yegor Timoshenko 5a00ea423a
common/pc/laptop: drop explicit vm.laptop_mode
This is handled by TLP, so we don't need to set that explicitly.
2017-12-27 07:46:06 +00:00

13 lines
325 B
Nix

{ config, lib, ... }:
{
imports = [ ../. ];
# TODO: fix in NixOS/nixpkgs
# Disable governor set in hardware-configuration.nix,
# required when services.tlp.enable is true:
powerManagement.cpuFreqGovernor =
lib.mkIf config.services.tlp.enable (lib.mkForce null);
services.tlp.enable = lib.mkDefault true;
}