1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-01 16:49:40 +01:00
nixos-hardware/common/pc/laptop/default.nix

12 lines
430 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
imports = [ ../. ];
# Gnome 40 introduced a new way of managing power, without tlp.
# However, these 2 services clash when enabled simultaneously.
# https://github.com/NixOS/nixos-hardware/issues/260
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|| !config.services.power-profiles-daemon.enable);
}