blob: 4cc5fce3497af19e6bb6076afcf6380ceb7f36ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{
config,
pkgs,
lib,
...
}:
{
options.nx.services.polkit.enable = lib.mkEnableOption "Enable and setup polkit service";
config = lib.mkIf config.nx.services.polkit.enable {
security.polkit.enable = true;
systemd.services.polkit-gnome-authenticator-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}/bin/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}
|