led
This commit is contained in:
parent
bc764c2b39
commit
21029bc9af
|
@ -15,6 +15,6 @@
|
|||
./update
|
||||
./polkit
|
||||
./ssh
|
||||
./ledfix
|
||||
./led
|
||||
];
|
||||
}
|
||||
|
|
13
modules/led/default.nix
Normal file
13
modules/led/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue