1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00

hyprpolkitagent: use wayland.systemd.target

This commit is contained in:
Austin Horstman 2025-03-20 22:32:31 -05:00
parent 29c6f2b0cb
commit c1ca8974b3
2 changed files with 5 additions and 6 deletions

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
let
inherit (lib)
mkEnableOption mkPackageOption types literalExpression mkIf maintainers;
inherit (lib) mkEnableOption mkPackageOption mkIf maintainers;
cfg = config.services.hyprpolkitagent;
in {
meta.maintainers = [ maintainers.bobvanderlinden ];
@ -17,11 +16,11 @@ in {
systemd.user.services.hyprpolkitagent = {
Unit = {
Description = "Hyprland PolicyKit Agent";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
PartOf = [ config.wayland.systemd.target ];
After = [ config.wayland.systemd.target ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ config.wayland.systemd.target ]; };
Service = { ExecStart = "${cfg.package}/libexec/hyprpolkitagent"; };
};

View file

@ -14,7 +14,7 @@
ExecStart=@hyprpolkitagent@/libexec/hyprpolkitagent
[Unit]
After=graphical-session-pre.target
After=graphical-session.target
Description=Hyprland PolicyKit Agent
PartOf=graphical-session.target
''