diff options
author | Tom Willemse | 2022-03-01 19:04:06 -0800 |
---|---|---|
committer | Tom Willemse | 2022-03-01 19:04:06 -0800 |
commit | 2b0b4e4526ab130957743c2c780097e462696b05 (patch) | |
tree | 1c1142ce0af8c2fc3316fecb9cd674ae40347613 | |
parent | d594da822902c2d396d3f7fa51ee96892566b9a5 (diff) | |
download | new-dotfiles-2b0b4e4526ab130957743c2c780097e462696b05.tar.gz new-dotfiles-2b0b4e4526ab130957743c2c780097e462696b05.zip |
[zsh] Add some supporting Guix variables
-rw-r--r-- | zsh/profile.org | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/zsh/profile.org b/zsh/profile.org index ec44433..c5e3355 100644 --- a/zsh/profile.org +++ b/zsh/profile.org @@ -3,6 +3,25 @@ Here we set some important variables that are used by other parts of the configuration. +** Guix + +Set up my Guix profile so that I can use all the right tools. + +#+begin_src sh + export GUIX_PROFILE="/home/chelys/.guix-profile" + source "$GUIX_PROFILE/etc/profile" +#+end_src + +Add the system's data directories to =XDG_DATA_DIRS=. Guix will set the =XDG_DATA_DIRS= environment variable, but this will prevent the rest of the system from using the default ones. This causes a crash in Firefox when I try to upload or download files (well, open a file dialog). According to the [[https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html][XDG Base Directory Specification]]: + +#+begin_quote +If =$XDG_DATA_DIRS= is either not set or empty, a value equal to =/usr/local/share/:/usr/share/= should be used. +#+end_quote + +#+begin_src sh + export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS:+:}/usr/local/share/:/usr/share/" +#+end_src + ** XDG I keep my XDG files in the normal place, but specifying them in an |