2024-05-04 23:15:57 +03:00
|
|
|
# Polkit agent is used by apps to ask for Root password with a popup.
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.module.polkit;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
security.polkit.enable = true;
|
|
|
|
systemd = {
|
|
|
|
packages = with pkgs; [ polkit-kde-agent ];
|
|
|
|
user = {
|
|
|
|
services.plasma-polkit-agent = {
|
|
|
|
environment.PATH = lib.mkForce null;
|
|
|
|
wantedBy = [ "gui-session.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
Restart = "always";
|
|
|
|
RestartSec = 2;
|
|
|
|
Slice = "session.slice";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-29 14:06:51 +03:00
|
|
|
}
|