summaryrefslogtreecommitdiffstats
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
parentf37710e94ed4381f5a85a1e47fbc35c002c12303 (diff)
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
-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 3722db5bc512..5574c5a132e5 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";
};
};
};