mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Merge pull request #309455 from c-leri/nixos/fix/thermald-adaptative
nixos/thermald: improve doc and code about configFile and adaptive
This commit is contained in:
commit
805191d9fb
@ -28,7 +28,13 @@ in
|
||||
configFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = "the thermald manual configuration file.";
|
||||
description = ''
|
||||
The thermald manual configuration file.
|
||||
|
||||
Leave unspecified to run with the `--adaptive` flag instead which will have thermald use your computer's DPTF adaptive tables.
|
||||
|
||||
See `man thermald` for more information.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkPackageOption pkgs "thermald" { };
|
||||
@ -49,8 +55,7 @@ in
|
||||
--no-daemon \
|
||||
${optionalString cfg.debug "--loglevel=debug"} \
|
||||
${optionalString cfg.ignoreCpuidCheck "--ignore-cpuid-check"} \
|
||||
${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \
|
||||
${optionalString (cfg.configFile == null) "--adaptive"} \
|
||||
${if cfg.configFile != null then "--config-file ${cfg.configFile}" else "--adaptive"} \
|
||||
--dbus-enable
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user