feat(nix/host/orion): enable polkit

This commit is contained in:
Price Hiller 2024-05-27 17:15:30 +00:00
parent c388f3933a
commit d0ab6df376
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{ ... }:
{
security.polkit = {
enable = true;
};
}

View File

@ -592,6 +592,21 @@ in
After = [ "compositor.target" ];
};
};
polkit-gnome-authentication-agent-1 = {
Unit = {
Description = "Gnome Polkit authentication agent";
Documentation = "https://gitlab.freedesktop.org/polkit/polkit/";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "always";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
};
}