diff options
-rw-r--r-- | nixos/modules/services/hardware/fancontrol.nix | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/nixos/modules/services/hardware/fancontrol.nix b/nixos/modules/services/hardware/fancontrol.nix index 1376f7eaebd6..fe4ab1e4226e 100644 --- a/nixos/modules/services/hardware/fancontrol.nix +++ b/nixos/modules/services/hardware/fancontrol.nix @@ -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}"; }; }; |