about summary refs log tree commit diff
path: root/users/fcuny/desktop
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-16 17:44:12 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-16 17:44:12 -0800
commitd9ee773c65eabb76334aa5deaa71579e46fd5065 (patch)
tree1d9af8b4f5770e5d3800d8e530e32357fee61052 /users/fcuny/desktop
parentswaybar: keep it simple for now (diff)
downloadworld-d9ee773c65eabb76334aa5deaa71579e46fd5065.tar.gz
xdg: use actual home directory path
Don't use `$HOME`, otherwise when calling `config.xdg-dir.music` in
other modules, they can complain that the value is not an absolute path.
Diffstat (limited to 'users/fcuny/desktop')
-rw-r--r--users/fcuny/desktop/xdg.nix32
1 files changed, 21 insertions, 11 deletions
diff --git a/users/fcuny/desktop/xdg.nix b/users/fcuny/desktop/xdg.nix
index 7390811..44a5ce1 100644
--- a/users/fcuny/desktop/xdg.nix
+++ b/users/fcuny/desktop/xdg.nix
@@ -1,18 +1,28 @@
 { config, lib, pkgs, ... }:
 
 {
-  xdg.enable = true;
+  home.packages = [
+    pkgs.xdg-user-dirs
+  ];
 
-  xdg.userDirs = {
+  xdg = {
     enable = true;
-    createDirectories = true;
-    desktop = "\$HOME/documents";
-    documents = "\$HOME/documents";
-    download = "\$HOME/downloads";
-    music = "\$HOME/media/music";
-    pictures = "\$HOME/media/pictures";
-    publicShare = "\$HOME/documents/public";
-    templates = "\$HOME/documents/templates";
-    videos = "\$HOME/media/videos";
+
+    mimeApps = {
+      enable = true;
+    };
+
+    userDirs = {
+      enable = true;
+      createDirectories = true;
+      desktop = "${config.home.homeDirectory}/documents";
+      documents = "${config.home.homeDirectory}/documents";
+      download = "${config.home.homeDirectory}/downloads";
+      music = "${config.home.homeDirectory}/media/music";
+      pictures = "${config.home.homeDirectory}/media/pictures";
+      publicShare = "${config.home.homeDirectory}/documents/public";
+      templates = "${config.home.homeDirectory}/documents/templates";
+      videos = "${config.home.homeDirectory}/media/videos";
+    };
   };
 }