ledfix
This commit is contained in:
parent
16cf3d07a8
commit
8406522bfa
|
@ -15,5 +15,6 @@
|
||||||
./update
|
./update
|
||||||
./polkit
|
./polkit
|
||||||
./ssh
|
./ssh
|
||||||
|
./ledfix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
1
modules/ledfix/de
Normal file
1
modules/ledfix/de
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
11
modules/ledfix/default.nix
Normal file
11
modules/ledfix/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
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