20 lines
468 B
Nix
20 lines
468 B
Nix
{ pkgs, config, ... }:
|
|
let
|
|
joystickwakeCmd = "${pkgs.joystickwake}/bin/joystickwake";
|
|
in
|
|
{
|
|
systemd.user.services."joystickwake" = {
|
|
Unit = {
|
|
Description = "Keep lockscreen from activating";
|
|
After = [ "graphical-session.pre.target" ];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" ];
|
|
};
|
|
Service = {
|
|
Type = "simple";
|
|
ExecStart = joystickwakeCmd;
|
|
};
|
|
};
|
|
}
|