diff options
author | Adrian Pistol <vifino@posteo.net> | 2023-08-27 16:18:54 +0200 |
---|---|---|
committer | Adrian Pistol <vifino@posteo.net> | 2023-08-27 16:18:54 +0200 |
commit | 7c9a7925b9674a05d0d4279eadf8123e615f8836 (patch) | |
tree | 83d376a64198e2ddc88f9fec1e1891877c568863 /nixos/modules/services | |
parent | 3ba7bebb0e27379eeeaef0a5c871bc560684e966 (diff) | |
download | nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar.gz nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar.bz2 nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar.lz nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar.xz nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.tar.zst nixlib-7c9a7925b9674a05d0d4279eadf8123e615f8836.zip |
thermald: allow ignoring cpuid check
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/hardware/thermald.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/thermald.nix b/nixos/modules/services/hardware/thermald.nix index 6b694ede5885..04a05e70c39d 100644 --- a/nixos/modules/services/hardware/thermald.nix +++ b/nixos/modules/services/hardware/thermald.nix @@ -19,6 +19,12 @@ in ''; }; + ignoreCpuidCheck = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc "Whether to ignore the cpuid check to allow running on unsupported platforms"; + }; + configFile = mkOption { type = types.nullOr types.path; default = null; @@ -47,6 +53,7 @@ in ${cfg.package}/sbin/thermald \ --no-daemon \ ${optionalString cfg.debug "--loglevel=debug"} \ + ${optionalString cfg.ignoreCpuidCheck "--ignore-cpuid-check"} \ ${optionalString (cfg.configFile != null) "--config-file ${cfg.configFile}"} \ --dbus-enable \ --adaptive |