cleanup
This commit is contained in:
parent
e10bdbca0b
commit
e5ecf9a4cf
4 changed files with 2 additions and 104 deletions
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
setvcp = "${lib.meta.getExe pkgs.ddcutil} setvcp D6";
|
||||
in
|
||||
{
|
||||
hardware.i2c.enable = true;
|
||||
systemd.services = {
|
||||
monitor-off = rec {
|
||||
script = "${setvcp} 05";
|
||||
wantedBy = [
|
||||
"sleep.target"
|
||||
"final.target"
|
||||
];
|
||||
before = wantedBy;
|
||||
|
||||
serviceConfig.Type = "oneshot";
|
||||
unitConfig.DefaultDependencies = false;
|
||||
};
|
||||
|
||||
monitor-on = rec {
|
||||
script = "${setvcp} 01";
|
||||
wantedBy = [
|
||||
"sleep.target"
|
||||
"multi-user.target"
|
||||
];
|
||||
after = wantedBy;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue