Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions common/pc/laptop/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
options,
...
}:

{
imports = [ ../. ];
Expand All @@ -7,7 +12,7 @@
# 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
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
&& !(options.services ? tuned && config.services.tuned.enable)
);
}
11 changes: 8 additions & 3 deletions gpd/win-2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
options,
...
}:
{
imports = [
../../common/cpu/intel
Expand All @@ -11,8 +16,8 @@
];

services.tlp.enable = lib.mkDefault (
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|| !config.services.power-profiles-daemon.enable
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
&& !(options.services ? tuned && config.services.tuned.enable)
);

# Required for grub to properly display the boot menu.
Expand Down