From 8aea5a7eb9c0ec753f33dcea28809e8b6510f977 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Wed, 14 Feb 2024 22:53:23 +0100 Subject: [PATCH] add xdg home dirs --- modules/other/xdg.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/other/xdg.nix b/modules/other/xdg.nix index a023df74..06845d92 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 = {