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