From cbc7c2429c25526c1d99c2da91a89ddf26bdd377 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 24 Sep 2023 10:44:35 +0300 Subject: [services] Automatic systemd start of lxqt policykit --- services.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/services.nix b/services.nix index 270d662..e7f89cf 100644 --- a/services.nix +++ b/services.nix @@ -3,6 +3,22 @@ { virtualisation.libvirtd.enable = true; + systemd = { + user.services.lxqt-policykit = { + description = "lxqt-policykit runner"; + wantedBy = [ "graphical-session.target" ]; + wants = [ "graphical-session.target" ]; + after = [ "graphical-session.target" ]; + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + }; + }; + services = { upower.enable = true; tlp.enable = true; -- cgit v1.3.1-26-gb76a