This commit is contained in:
joygnu 2024-08-19 21:20:58 +02:00
parent 8406522bfa
commit e256e2a069
4 changed files with 14 additions and 13 deletions

View file

@ -15,6 +15,6 @@
./update
./polkit
./ssh
./ledfix
./led
];
}

13
modules/led/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
systemd.services.micmute = {
description = "Set microphone mute and normal mute LEDs to off";
wantedBy = [ "multi-user.target" ];
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";
};
};
}

View file

@ -1 +0,0 @@

View file

@ -1,11 +0,0 @@
{ ... }:
{
systemd.services.micmute = {
description = "Set microphone mute LED to off";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "sh -c 'echo 0 | tee /sys/class/leds/thinkpad::micmute/brightness'";
Type = "oneshot";
};
};
}