add wayland-appusage

This commit is contained in:
xunuwu 2025-03-22 21:18:13 +01:00
parent 2e4f290d21
commit 5bf102f18f
4 changed files with 99 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{
inputs,
lib,
pkgs,
...
}: {
home.packages = [inputs.wayland-appusage.packages.${pkgs.system}.appusage];
systemd.user.services.appusage = {
Unit = {
Description = "Appusage daemon";
};
Install.WantedBy = ["sway-session.target"];
Service = {
Type = "simple";
Restart = "on-failure";
ExecStart = "${inputs.wayland-appusage.packages.${pkgs.system}.appusage-daemon}/bin/appusage-daemon";
RestartSec = "5s";
};
};
}