Polkit : Switch agent to KDE.
This commit is contained in:
parent
d43b8641df
commit
b13f1cf15f
|
@ -8,6 +8,7 @@
|
|||
./desktop/Portal.nix
|
||||
./desktop/Realtime.nix
|
||||
./desktop/Sound.nix
|
||||
./desktop/Systemd.nix
|
||||
];
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,19 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, lib, ... }: {
|
||||
security.polkit.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
polkit_gnome
|
||||
];
|
||||
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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
9
module/desktop/Systemd.nix
Normal file
9
module/desktop/Systemd.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }: {
|
||||
systemd.user.targets.gui-session = {
|
||||
after = [ "graphical-session-pre.target" ];
|
||||
bindsTo = [ "graphical-session.target" ];
|
||||
description = "GUI session.";
|
||||
documentation = [ "man:systemd.special(7)" ];
|
||||
wants = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue