A Nix package and systemd service for fw-fanctrl. Some small changes were required to correctly package it, so I am using a fork of the original repo. Someone more experienced with Nix may know a way to do this without the changes, so please feel free to contribute.
git clone --recurse-submodules [email protected]:mdvmeijer/fw-fanctrl-nix.git
- add
/path/to/fw-fanctrl-nix/service.nix
to yourconfiguration.nix
or to any module imported by it, e.g. like
imports =
[
/home/user1/fw-fanctrl-nix/service.nix
];
- Enable the service with
services.fw-fanctrl.enable = true;
.
By default, the service follows the configuration defined in config.json
. If you want to change the configuration, either edit config.json
or create your own config file and add services.fw-fanctrl.configJsonPath = /path/to/your/fw-fanctrl-config.json;
to your configuration.nix
.
For more information about the configuration format and semantics, refer to fw-fanctrl's README.