summaryrefslogtreecommitdiff
path: root/modules/polkit.nix
diff options
context:
space:
mode:
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;
+ };
+ };
+ };
+}