git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit76417690557857f31f6909acb9b928d6f1f0e9de authorEvils <evils.devils@protonmail.com> dateMon 17 May 2021, 08:28 (6 years ago) parentf37710e
1 file changed−12
nixos/modules/services/hardware/fancontrol.nix−12
nixos/modules/services/hardware/fancontrol.nix−12
@@ -31,16 +31,6 @@ in
3131
3232 config = mkIf cfg.enable {
3333
34− users = {
35− groups.lm_sensors = {};
36−
37− users.fancontrol = {
38− isSystemUser = true;
39− group = "lm_sensors";
40− description = "fan speed controller";
41− };
42− };
43−
4434 systemd.services.fancontrol = {
4535 documentation = [ "man:fancontrol(8)" ];
4636 description = "software fan control";
@@ -49,8 +39,6 @@ in
4939
5040 serviceConfig = {
5141 ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
52− Group = "lm_sensors";
53− User = "fancontrol";
5442 };
5543 };
5644 };