diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2023-12-31 11:30:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-31 11:30:50 +0100 |
commit | 2d9d11dee694e2dd711bc73f238213d7e2d5204c (patch) | |
tree | 72aa0af5130168c3c2094cf9de154294e4f9192c | |
parent | 42984206bfcb8f8312c2c860c981787235402727 (diff) | |
parent | 7c9a7925b9674a05d0d4279eadf8123e615f8836 (diff) | |
download | nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar.gz nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar.bz2 nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar.lz nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar.xz nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.tar.zst nixlib-2d9d11dee694e2dd711bc73f238213d7e2d5204c.zip |
Merge pull request #251782 from vifino/thermald_ignore-cpuid-check
thermald: allow ignoring cpuid check
-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 7ae602823cd6..a4839f326cc4 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; @@ -42,6 +48,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 |