add xdg home dirs

This commit is contained in:
jacekpoz 2024-02-14 22:53:23 +01:00
parent 988e4d9875
commit 8aea5a7eb9
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -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 = {