move auth agent to systemd

This commit is contained in:
Adithya 2024-04-26 22:35:56 +05:30
parent 29738ae0fd
commit 9cc08ef25d
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 23 additions and 1 deletions

View 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";
};
};
};
}

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./rofi ./rofi
./waybar ./waybar
./auth-agent.nix
./dunst.nix ./dunst.nix
./kanshi.nix ./kanshi.nix
./swayidle.nix ./swayidle.nix

View file

@ -136,7 +136,6 @@ in
exec-once = [ exec-once = [
"${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24" "${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24"
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
]; ];
bindm = [ bindm = [