nixos-config/user/powerplay-led-idle.nix

18 lines
426 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
{
systemd.user.services.powerplay-led-idle = {
Unit = {
Description = "Autosuspend Powerplay mousepad led";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = lib.getExe pkgs.powerplay-led-idle;
Restart = "on-failure";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}