summaryrefslogtreecommitdiff
path: root/modules/polkit.nix
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-09 21:52:19 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-09 21:52:19 +0530
commitdb0493863f4d89a074eea0b4e230ff00cea67611 (patch)
treef3e71ae0efd67a926c2a8e7143e4fb0788857947 /modules/polkit.nix
parentd4c18c4b2f659d1b7dfceefcc06e498762b9c5e4 (diff)
update
Diffstat (limited to 'modules/polkit.nix')
-rw-r--r--modules/polkit.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/polkit.nix b/modules/polkit.nix
new file mode 100644
index 0000000..ebfd03a
--- /dev/null
+++ b/modules/polkit.nix
@@ -0,0 +1,21 @@
+{ pkgs, ... }:
+
+{
+ environment.sessionVariables.NIXOS_OZONE_WL = "1";
+
+ systemd = {
+ user.services.polkit-gnome-authentication-agent-1 = {
+ description = "polkit-gnome-authentication-agent-1";
+ wantedBy = [ "graphical-session.target" ];
+ wants = [ "graphical-session.target" ];
+ after = [ "graphical-session.target" ];
+ serviceConfig = {
+ Type = "simple";
+ ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
+ Restart = "on-failure";
+ RestartSec = 1;
+ TimeoutStopSec = 10;
+ };
+ };
+ };
+}