use a different polkit agent, module
This commit is contained in:
parent
1096b13241
commit
56358b2922
4 changed files with 33 additions and 2 deletions
31
modules/desktop/mate-polkit.nix
Normal file
31
modules/desktop/mate-polkit.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.mate-polkit;
|
||||
in {
|
||||
options.modules.desktop.mate-polkit = {
|
||||
enable = mkEnableOption "Enable the MATE desktop environment polkit authentication agent";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.systemd.user.services.mate-polkit = {
|
||||
Unit = {
|
||||
Description = "the MATE desktop environment polkit authentication agent";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue