about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/fancontrol.nix8
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}";
       };
     };