move auth agent to systemd
This commit is contained in:
parent
29738ae0fd
commit
9cc08ef25d
3 changed files with 23 additions and 1 deletions
22
home/wm/addon/auth-agent.nix
Normal file
22
home/wm/addon/auth-agent.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
agent = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
in
|
||||
{
|
||||
systemd.user = {
|
||||
services.auth-agent = {
|
||||
Unit = {
|
||||
Description = "Polkit AUthentication Agent";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${agent}";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./rofi
|
||||
./waybar
|
||||
./auth-agent.nix
|
||||
./dunst.nix
|
||||
./kanshi.nix
|
||||
./swayidle.nix
|
||||
|
|
|
@ -136,7 +136,6 @@ in
|
|||
|
||||
exec-once = [
|
||||
"${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24"
|
||||
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
|
|
Loading…
Reference in a new issue