mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
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:
parent
f37710e94e
commit
7641769055
@ -31,16 +31,6 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
users = {
|
|
||||||
groups.lm_sensors = {};
|
|
||||||
|
|
||||||
users.fancontrol = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "lm_sensors";
|
|
||||||
description = "fan speed controller";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.fancontrol = {
|
systemd.services.fancontrol = {
|
||||||
documentation = [ "man:fancontrol(8)" ];
|
documentation = [ "man:fancontrol(8)" ];
|
||||||
description = "software fan control";
|
description = "software fan control";
|
||||||
@ -49,8 +39,6 @@ in
|
|||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
|
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
|
||||||
Group = "lm_sensors";
|
|
||||||
User = "fancontrol";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user