about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorEvils <evils.devils@protonmail.com>2019-09-25 14:42:22 +0200
committerEvils <evils.devils@protonmail.com>2019-09-25 14:42:22 +0200
commitbaa642e8b3742b6b1b38f6fee61acc290ee8191b (patch)
tree31c34acd9e47d0da61dabbaa18f1ad631a1bc321 /nixos/modules/services/hardware
parent30f8bc974ce16f357f7f9d65ce4acd3b3cc8ae42 (diff)
downloadnixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar.gz
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar.bz2
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar.lz
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar.xz
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.tar.zst
nixlib-baa642e8b3742b6b1b38f6fee61acc290ee8191b.zip
fancontrol: more cleanup
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}";
       };
     };