summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorEvils <evils.devils@protonmail.com>2021-05-17 08:28:09 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-17 00:00:01 -0700
commit76417690557857f31f6909acb9b928d6f1f0e9de (patch)
tree0c0e00f2ee214f70b50aa5ff6d81fbbb67a5991d /nixos/modules/services/hardware
parentf37710e94ed4381f5a85a1e47fbc35c002c12303 (diff)
downloadnixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar.gz
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar.bz2
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar.lz
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar.xz
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.tar.zst
nixpkgs-76417690557857f31f6909acb9b928d6f1f0e9de.zip
nixos/fancontrol: back to running as root
regular users don't have write access to /sys/devices
  which is where the kernel endpoints are to control fan speed
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/fancontrol.nix12
1 files changed, 0 insertions, 12 deletions
diff --git a/nixos/modules/services/hardware/fancontrol.nix b/nixos/modules/services/hardware/fancontrol.nix
index 3722db5bc51..5574c5a132e 100644
--- a/nixos/modules/services/hardware/fancontrol.nix
+++ b/nixos/modules/services/hardware/fancontrol.nix
@@ -31,16 +31,6 @@ in
 
   config = mkIf cfg.enable {
 
-    users = {
-      groups.lm_sensors = {};
-
-      users.fancontrol = {
-        isSystemUser = true;
-        group = "lm_sensors";
-        description = "fan speed controller";
-      };
-    };
-
     systemd.services.fancontrol = {
       documentation = [ "man:fancontrol(8)" ];
       description = "software fan control";
@@ -49,8 +39,6 @@ in
 
       serviceConfig = {
         ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
-        Group = "lm_sensors";
-        User = "fancontrol";
       };
     };
   };