Files
DCGOS/home/wayland/polkit-agent.nix
dichgrem 0a7063ba13 fix:amd-pstate-epp
style:hy_animations_config

remove:scx&&swayosd&&tsukimi

feat:use_polkit_gnome

add:embedded
2026-01-23 14:37:01 +08:00

22 lines
547 B
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
polkit_gnome
];
systemd.user.services.polkit-gnome-authentication-agent = {
Unit = {
Description = "PolicyKit GNOME Authentication Agent";
PartOf = ["graphical-session.target"];
After = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
Slice = "session.slice";
};
Install = {
WantedBy = ["graphical-session.target"];
};
};
}