{ pkgs, ... }: { systemd.user.services.polkit-gnome-authentication-agent = { Unit = { After = [ "graphical-session.target" ]; Requisite = [ "graphical-session.target" ]; }; Service = { ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; RestartSec = 5; Restart = "on-failure"; }; Install.WantedBy = [ "graphical-session.target" ]; }; }