diff --git a/hosts/orion/modules/polkit.nix b/hosts/orion/modules/polkit.nix new file mode 100644 index 00000000..ef4f0d67 --- /dev/null +++ b/hosts/orion/modules/polkit.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + security.polkit = { + enable = true; + }; +} \ No newline at end of file diff --git a/users/price/home.nix b/users/price/home.nix index 405c7a58..b652eb13 100644 --- a/users/price/home.nix +++ b/users/price/home.nix @@ -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" ]; + }; }; }; }