Move stuff, rm nix-gaming
This commit is contained in:
parent
9afb7422a8
commit
ec1251c8f7
13 changed files with 22 additions and 26 deletions
25
clients/quadraticpc/monitor.nix
Normal file
25
clients/quadraticpc/monitor.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
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…
Add table
Add a link
Reference in a new issue