From baa642e8b3742b6b1b38f6fee61acc290ee8191b Mon Sep 17 00:00:00 2001 From: Evils Date: Wed, 25 Sep 2019 14:42:22 +0200 Subject: fancontrol: more cleanup --- nixos/modules/services/hardware/fancontrol.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'nixos/modules/services') 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}"; }; }; -- cgit 1.4.1