From 440625f9be80aa75d598bc68a4c1c415b80a12c0 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 12 Jul 2024 00:49:08 +0700 Subject: [PATCH] Fix fcitx5 and polkit gnome --- modules/wm/home.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/wm/home.nix b/modules/wm/home.nix index 1941a88..b47e1e6 100644 --- a/modules/wm/home.nix +++ b/modules/wm/home.nix @@ -92,10 +92,12 @@ in { systemd.user.services.polkit-gnome-authentication-agent-1 = { Unit = { Description = "polkit-gnome-authentication-agent-1"; - WantedBy = ["graphical-session.target"]; Wants = ["graphical-session.target"]; After = ["graphical-session.target"]; }; + Install = { + WantedBy = ["graphical-session.target"]; + }; Service = { Type = "simple"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; @@ -114,6 +116,11 @@ in { ]; }; }; + systemd.user.services.fcitx5-daemon = { + Unit = { + After = ["graphical-session.target"]; + }; + }; xdg.configFile."fcitx5/config" = { force = true;