home-manager/programs/hypridle: set systemd service correctly for uwsm
This commit is contained in:
parent
c06597fe7f
commit
1dc4024973
1 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
|
@ -33,4 +35,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# needed when using uwsm as the session manager
|
||||||
|
systemd.user.services."hypridle" = lib.mkForce {
|
||||||
|
Unit = {
|
||||||
|
Description = "Hyprland's Idle Daemon";
|
||||||
|
After = "graphical-session.target";
|
||||||
|
X-Restart-Triggers = ["${config.xdg.configFile."hypr/hypridle.conf".source}"];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "exec";
|
||||||
|
ExecStart = lib.getExe pkgs.hypridle;
|
||||||
|
Restart = "on-failure";
|
||||||
|
Slice = "background-graphical.slice";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = ["graphical-session.target"];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue