reNixos/hand7s/systemd/hyprpolkitagent-service.nix
s0me1newithhand7s 5dab6c5e28
hand7s: fmt
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-06-13 13:13:26 +03:00

30 lines
821 B
Nix

{
pkgs,
lib,
...
}: {
systemd = {
user = {
services = {
hyprpolkitagent = {
Unit = {
Description = "Hyprpolkitagent service.";
WantedBy = "graphical-session.target";
};
Service = {
ExecStart = "${lib.getExe pkgs.hyprpolkitagent}";
Restart = "always";
RestartSec = 10;
};
Install = {
After = "graphical-session.target";
ConditionEnvironment = "WAYLAND_DISPLAY";
PartOf = "graphical-session.target";
};
};
};
};
};
}