use hm for xdg dirs

This commit is contained in:
jacekpoz 2024-02-14 21:14:14 +01:00
parent 10ae3b11c3
commit de49dd1457
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 46 additions and 45 deletions

View file

@ -153,11 +153,6 @@
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
XDG_DATA_HOME = "\$HOME/.local/share";
XDG_CONFIG_HOME = "\$HOME/.config";
XDG_STATE_HOME = "\$HOME/.local/state";
XDG_CACHE_HOME = "\$HOME/.cache";
HISTFILE = "\${XDG_STATE_HOME}/bash/history";
CARGO_HOME = "\${XDG_DATA_HOME}/cargo";
GTK2_RC_FILES = "\${XDG_CONFIG_HOME}/gtk-2.0/gtkrc";

View file

@ -11,7 +11,12 @@
text_editor = "nvim.desktop";
in {
home-manager.users.${config'.username} = {
xdg.mimeApps = {
xdg = {
cacheHome = "~/.cache";
configHome = "~/.config";
dataHome = "~/.local/share";
stateHome = "~/.local/state";
mimeApps = {
enable = true;
defaultApplications = {
"text/html" = [ primary_browser secondary_browser ];
@ -54,4 +59,5 @@ in {
};
};
};
};
}