From d0ab6df37688edbacff97921b18117b986871b6d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 27 May 2024 17:15:30 +0000 Subject: [PATCH] feat(nix/host/orion): enable polkit --- hosts/orion/modules/polkit.nix | 6 ++++++ users/price/home.nix | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/orion/modules/polkit.nix 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" ]; + }; }; }; }