Joystickwake + background

This commit is contained in:
Filippo Berto 2021-06-22 11:22:21 +02:00
parent e080d5b9b8
commit 8acab53e36
10 changed files with 135 additions and 35 deletions

20
modules/joystickwake.nix Normal file
View file

@ -0,0 +1,20 @@
{ 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;
};
};
}