nix/module/desktop/Polkit.nix

20 lines
377 B
Nix
Raw Normal View History

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
}