Polkit: Difference between revisions

Dass (talk | contribs)
m Fix minor typing and consistency errors
Update syntax for example systemd unit
Line 62: Line 62:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
systemd = {
systemd.user.services.polkit-gnome-authentication-agent-1 = {
  user.services.polkit-gnome-authentication-agent-1 = {
  Unit = {
     description = "polkit-gnome-authentication-agent-1";
     Description = "polkit-gnome-authentication-agent-1";
     wantedBy = [ "graphical-session.target" ];
     Wants = [ "graphical-session.target" ];
     wants = [ "graphical-session.target" ];
     After = [ "graphical-session.target" ];
     after = [ "graphical-session.target" ];
  };
    serviceConfig = {
  Install = {
        Type = "simple";
     WantedBy = [ "graphical-session.target" ];
        ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
  };
        Restart = "on-failure";
  Service = {
        RestartSec = 1;
    Type = "simple";
        TimeoutStopSec = 10;
    ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
      };
    Restart = "on-failure";
    RestartSec = 1;
    TimeoutStopSec = 10;
   };
   };
};
};