nix-dotfiles/hm_modules/joystickwake.nix

17 lines
482 B
Nix

{ pkgs, ... }:
let joystickwakeCmd = "${pkgs.joystickwake}/bin/joystickwake";
in {
systemd.user.services."joystickwake" = {
Unit = {
Description = "Keep lockscreen from activating";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
Type = "simple";
ExecStart = joystickwakeCmd;
Environment = [ "DISPLAY=:0" ];
};
};
}