This commit is contained in:
joy 2024-08-19 21:20:58 +02:00
parent bc764c2b39
commit 21029bc9af
4 changed files with 14 additions and 13 deletions

View file

@ -15,6 +15,6 @@
./update ./update
./polkit ./polkit
./ssh ./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";
};
};
}