From 480704802e6335e0190381ccb6dba895330615af Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Fri, 12 Apr 2024 20:27:40 +0300 Subject: [PATCH] enable a polkit agent --- nixos/laptop/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nixos/laptop/default.nix b/nixos/laptop/default.nix index 29c019a..615e114 100644 --- a/nixos/laptop/default.nix +++ b/nixos/laptop/default.nix @@ -155,6 +155,24 @@ }; }; + 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; + }; + }; + }; + }; + virtualisation = { waydroid.enable = true; };