diff options
author | Domen Kožar <domen@dev.si> | 2016-01-02 10:56:37 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-01-02 10:56:37 +0100 |
commit | 8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf (patch) | |
tree | 463d24f8993e3377b21edcbaf4abf176fa57654a /nixos | |
parent | 4f08cb0de95e34409845ebe3564aca796bc6ea66 (diff) | |
parent | d732a7f5c50f33443f63a03a6833ee2b31417a55 (diff) | |
download | nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar.gz nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar.bz2 nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar.lz nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar.xz nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.tar.zst nixlib-8225e1b1c1fd24fed49c5faf3b9a9b65f677e5bf.zip |
Merge pull request #12086 from bmorphism/master
thinkfan levels option to control actuation points
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/hardware/thinkfan.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/nixos/modules/services/hardware/thinkfan.nix b/nixos/modules/services/hardware/thinkfan.nix index 16c31aab2d50..018e82e58a3d 100644 --- a/nixos/modules/services/hardware/thinkfan.nix +++ b/nixos/modules/services/hardware/thinkfan.nix @@ -43,13 +43,7 @@ let sensor ${cfg.sensor} (0, 10, 15, 2, 10, 5, 0, 3, 0, 3) - (0, 0, 55) - (1, 48, 60) - (2, 50, 61) - (3, 52, 63) - (6, 56, 65) - (7, 60, 85) - (127, 80, 32767) + ${cfg.levels} ''; in { @@ -72,6 +66,22 @@ in { ''; }; + levels = mkOption { + default = '' + (0, 0, 55) + (1, 48, 60) + (2, 50, 61) + (3, 52, 63) + (6, 56, 65) + (7, 60, 85) + (127, 80, 32767) + ''; + description ='' + Sensor used by thinkfan + ''; + }; + + }; }; |