fix STUPID fucking hm xdg config

This commit is contained in:
jacekpoz 2024-11-02 22:53:05 +01:00
parent 06a74bb13f
commit 77d9e5598d
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -3,6 +3,7 @@
... ...
}: let }: let
inherit (config.poz.other.system) username; inherit (config.poz.other.system) username;
hmCfg = config.home-manager.users.${username};
# https://specifications.freedesktop.org/basedir-spec/latest/ # https://specifications.freedesktop.org/basedir-spec/latest/
XDG_CACHE_HOME = "$HOME/.cache"; XDG_CACHE_HOME = "$HOME/.cache";
@ -75,10 +76,10 @@ in {
''; '';
}; };
cacheHome = XDG_CACHE_HOME; cacheHome = "${hmCfg.home.homeDirectory}/.cache";
configHome = XDG_CONFIG_HOME; configHome = "${hmCfg.home.homeDirectory}/.config";
dataHome = XDG_DATA_HOME; dataHome = "${hmCfg.home.homeDirectory}/.local/share";
stateHome = XDG_STATE_HOME; stateHome = "${hmCfg.home.homeDirectory}/.local/state";
}; };
}; };
} }