fancontrol: more cleanup
This commit is contained in:
parent
30f8bc974c
commit
baa642e8b3
@ -8,12 +8,7 @@ let
|
|||||||
in {
|
in {
|
||||||
|
|
||||||
options.hardware.fancontrol = {
|
options.hardware.fancontrol = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to enable fancontrol (requires a configuration file, see pwmconfig)";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
example = true;
|
|
||||||
description = "Whether to enable fancontrol (requires a configuration file, see pwmconfig)";
|
|
||||||
};
|
|
||||||
|
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
@ -29,7 +24,6 @@ in {
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "root";
|
|
||||||
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${cfg.configFile}";
|
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${cfg.configFile}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user