main
1{
2 flake.modules.homeManager.core = {config, ...}: {
3 xdg = {
4 enable = true;
5 userDirs.setSessionVariables = true;
6 cacheHome = "${config.home.homeDirectory}/.cache";
7 configHome = "${config.home.homeDirectory}/.config";
8 dataHome = "${config.home.homeDirectory}/.local/share";
9 stateHome = "${config.home.homeDirectory}/.local/state";
10 };
11
12 home.preferXdgDirectories = true;
13
14 home.sessionVariables = {
15 CARGO_HOME = "${config.xdg.dataHome}/cargo";
16 NODE_REPL_HISTORY = "${config.xdg.dataHome}/node_repl_history";
17 };
18 };
19}