From dd3c6384610d84dc45d5468e4c3fb792a6ec45ac Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 1 Feb 2026 13:35:29 -0800 Subject: [PATCH] picom: use %h systemd specifier for home directory XDG_CONFIG_HOME is not set in the systemd environment, causing the animations config path to resolve incorrectly. Co-Authored-By: Claude Opus 4.5 --- nixos/xmonad.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/xmonad.nix b/nixos/xmonad.nix index 17405a11..69bbae8d 100644 --- a/nixos/xmonad.nix +++ b/nixos/xmonad.nix @@ -206,8 +206,9 @@ makeEnable config "myModules.xmonad" true { ''; # Override picom service to include animations config + # Use %h for home directory since XDG_CONFIG_HOME may not be set systemd.user.services.picom = { - Service.ExecStart = pkgs.lib.mkForce "${pkgs.picom}/bin/picom --config \${XDG_CONFIG_HOME}/picom/picom.conf --config \${XDG_CONFIG_HOME}/picom/animations.conf"; + Service.ExecStart = pkgs.lib.mkForce "${pkgs.picom}/bin/picom --config %h/.config/picom/picom.conf --config %h/.config/picom/animations.conf"; }; # systemd.user.services.notifications-tray-icon = {