Polkit: Difference between revisions

imported>Coreyoconnor
update to newer unit options unitConfig and serviceConfig
imported>Skallito
m Fix syntax for the service.
Line 18: Line 18:
systemd = {
systemd = {
   user.services.polkit-gnome-authentication-agent-1 = {
   user.services.polkit-gnome-authentication-agent-1 = {
     unitConfig = {
     description = "polkit-gnome-authentication-agent-1";
      Description = "polkit-gnome-authentication-agent-1";
    wantedBy = [ "graphical-session.target" ];
      Wants = [ "graphical-session.target" ];
    wants = [ "graphical-session.target" ];
      WantedBy = [ "graphical-session.target" ];
    after = [ "graphical-session.target" ];
      After = [ "graphical-session.target" ];
    };
     serviceConfig = {
     serviceConfig = {
      Type = "simple";
        Type = "simple";
         ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
         ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
         Restart = "on-failure";
         Restart = "on-failure";