aboutsummaryrefslogtreecommitdiff
path: root/config/xdg-user-dirs
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2021-01-12 10:54:29 -0700
committerKenny Ballou <kballou@devnulllabs.io>2021-01-21 13:15:54 -0700
commite025836743c2390a27611adcb8ed4ead161754ec (patch)
treebcc56e9cbd75298407dc7f0994e05982f93c899f /config/xdg-user-dirs
parent1a33315614abce1bf9ff89a9ed39a97e30509556 (diff)
downloaddotfiles-e025836743c2390a27611adcb8ed4ead161754ec.tar.gz
dotfiles-e025836743c2390a27611adcb8ed4ead161754ec.tar.xz
xdg: set full path
These were not working and the defaults (capitalized versions) would keep showing up. Adding the full path fixes the observed behavior and properly sets the XDG user directories. Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'config/xdg-user-dirs')
-rw-r--r--config/xdg-user-dirs/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/config/xdg-user-dirs/default.nix b/config/xdg-user-dirs/default.nix
index 72013339..e2db4543 100644
--- a/config/xdg-user-dirs/default.nix
+++ b/config/xdg-user-dirs/default.nix
@@ -1,14 +1,17 @@
{ ... }:
+let
+ home = builtins.getEnv "HOME";
+in
{
xdg.userDirs = {
enable = true;
- desktop = "";
- documents = "documents";
- download = "downloads";
- music = "music";
- pictures = "pictures";
- publicShare = "public";
- templates = "templates";
- videos = "videos";
+ desktop = "${home}/desktop";
+ documents = "${home}/documents";
+ download = "${home}/downloads";
+ music = "${home}/music";
+ pictures = "${home}/pictures";
+ publicShare = "${home}/public";
+ templates = "${home}/templates";
+ videos = "${home}/videos";
};
}