diff --git a/modules/other/xdg.nix b/modules/other/xdg.nix index a023df7..06845d9 100644 --- a/modules/other/xdg.nix +++ b/modules/other/xdg.nix @@ -1,7 +1,10 @@ { + config, config', ... }: let + hmCfg = config.home-manager.users.${config'.username}; + primary_browser = "firefox-schizo.desktop"; secondary_browser = "firefox-unschizo.desktop"; mail_client = "thunderbird.desktop"; @@ -12,10 +15,10 @@ in { home-manager.users.${config'.username} = { xdg = { - cacheHome = "~/.cache"; - configHome = "~/.config"; - dataHome = "~/.local/share"; - stateHome = "~/.local/state"; + cacheHome = "${hmCfg.home.homeDirectory}/.cache"; + configHome = "${hmCfg.home.homeDirectory}/.config"; + dataHome = "${hmCfg.home.homeDirectory}/.local/share"; + stateHome = "${hmCfg.home.homeDirectory}/.local/state"; mimeApps = { enable = true; defaultApplications = {