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 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 13:35:29 -08:00
parent ba91ff5b82
commit dd3c638461

View File

@@ -206,8 +206,9 @@ makeEnable config "myModules.xmonad" true {
''; '';
# Override picom service to include animations config # Override picom service to include animations config
# Use %h for home directory since XDG_CONFIG_HOME may not be set
systemd.user.services.picom = { 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 = { # systemd.user.services.notifications-tray-icon = {