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
This commit is contained in:
Evils 2021-05-17 08:28:09 +02:00 committed by Jonathan Ringer
parent f37710e94e
commit 7641769055

View file

@ -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";
};
};
};