nix/module/desktop/Polkit.nix

21 lines
447 B
Nix
Raw Normal View History

# Polkit agent is used by apps to ask for Root password with a popup.
2024-03-30 04:23:29 +03:00
{ pkgs, lib, ... }: {
2024-03-29 14:06:51 +03:00
security.polkit.enable = true;
2024-03-30 04:23:29 +03:00
systemd = {
packages = with pkgs; [
polkit-kde-agent
];
user = {
services.plasma-polkit-agent = {
serviceConfig = {
Restart = "always";
RestartSec = 2;
Slice = "session.slice";
};
environment.PATH = lib.mkForce null;
wantedBy = [ "gui-session.target" ];
};
};
};
2024-03-29 14:06:51 +03:00
}