From 77d9e5598d8b23bdc61483f68f0107ca2aa07461 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 2 Nov 2024 22:53:05 +0100 Subject: [PATCH] fix STUPID fucking hm xdg config --- hosts/common/desktop/xdg-ninja.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hosts/common/desktop/xdg-ninja.nix b/hosts/common/desktop/xdg-ninja.nix index f2b3db9..cdd7230 100644 --- a/hosts/common/desktop/xdg-ninja.nix +++ b/hosts/common/desktop/xdg-ninja.nix @@ -3,6 +3,7 @@ ... }: let inherit (config.poz.other.system) username; + hmCfg = config.home-manager.users.${username}; # https://specifications.freedesktop.org/basedir-spec/latest/ XDG_CACHE_HOME = "$HOME/.cache"; @@ -75,10 +76,10 @@ in { ''; }; - cacheHome = XDG_CACHE_HOME; - configHome = XDG_CONFIG_HOME; - dataHome = XDG_DATA_HOME; - stateHome = XDG_STATE_HOME; + cacheHome = "${hmCfg.home.homeDirectory}/.cache"; + configHome = "${hmCfg.home.homeDirectory}/.config"; + dataHome = "${hmCfg.home.homeDirectory}/.local/share"; + stateHome = "${hmCfg.home.homeDirectory}/.local/state"; }; }; }