added systemd service for gnome polkit

This commit is contained in:
serenity-F 2024-10-22 21:45:27 +10:00
parent f252e88650
commit 56685ac7a2
No known key found for this signature in database
3 changed files with 38 additions and 5 deletions

View file

@ -0,0 +1,10 @@
{ ... }: {
imports = [
./polkit.nix
#./file.nix
];
}

View file

@ -0,0 +1,24 @@
{ ... }: {
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}