mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 16:16:21 +01:00
Merge 111d7c3baa into 24084931d8
This commit is contained in:
commit
4996a18d75
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ../. ];
|
imports = [ ../. ];
|
||||||
|
|
@ -7,7 +12,7 @@
|
||||||
# However, these 2 services clash when enabled simultaneously.
|
# However, these 2 services clash when enabled simultaneously.
|
||||||
# https://github.com/NixOS/nixos-hardware/issues/260
|
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||||
services.tlp.enable = lib.mkDefault (
|
services.tlp.enable = lib.mkDefault (
|
||||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||||
|| !config.services.power-profiles-daemon.enable
|
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/cpu/intel
|
../../common/cpu/intel
|
||||||
|
|
@ -11,8 +16,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tlp.enable = lib.mkDefault (
|
services.tlp.enable = lib.mkDefault (
|
||||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||||
|| !config.services.power-profiles-daemon.enable
|
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||||
);
|
);
|
||||||
|
|
||||||
# Required for grub to properly display the boot menu.
|
# Required for grub to properly display the boot menu.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue