nix/hosts/laptop/led.nix

13 lines
422 B
Nix
Raw Normal View History

2024-08-21 09:02:49 +02:00
{...}: {
2024-08-19 21:20:58 +02:00
systemd.services.micmute = {
description = "Set microphone mute and normal mute LEDs to off";
2024-08-21 09:02:49 +02:00
wantedBy = ["multi-user.target"];
2024-08-19 21:20:58 +02:00
serviceConfig = {
ExecStart = "/bin/sh -c 'echo 0 | tee /sys/class/leds/platform::micmute/brightness > /dev/null; echo 0 | tee /sys/class/leds/platform::mute/brightness > /dev/null'";
Type = "oneshot";
User = "root";
Group = "root";
};
};
}