systemd.nix
1 { 2 pkgs, 3 ... 4 }: 5 { 6 systemd.user.services.polkit-gnome-authentication-agent-1 = { 7 wants = [ "graphical-session.target" ]; 8 after = [ "graphical-session.target" ]; 9 wantedBy = [ "graphical-session.target" ]; 10 description = "polkit-gnome-authentication-agent-1"; 11 serviceConfig = { 12 RestartSec = 1; 13 Type = "simple"; 14 TimeoutStopSec = 10; 15 Restart = "on-failure"; 16 ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; 17 }; 18 }; 19 }