From 35bd28fe4ba86a52fda56244a6ae66dddef497f3 Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Tue, 16 Jan 2024 18:58:59 +0100 Subject: [PATCH] feat: define xdg user dirs --- users/gandalf/modules/default.nix | 1 + users/gandalf/modules/xdg.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 users/gandalf/modules/xdg.nix diff --git a/users/gandalf/modules/default.nix b/users/gandalf/modules/default.nix index f0df613..0d19318 100644 --- a/users/gandalf/modules/default.nix +++ b/users/gandalf/modules/default.nix @@ -10,6 +10,7 @@ ./packages.nix ./ssh.nix ./tmux.nix + ./xdg.nix ./zsh.nix ]; } diff --git a/users/gandalf/modules/xdg.nix b/users/gandalf/modules/xdg.nix new file mode 100644 index 0000000..3330ae0 --- /dev/null +++ b/users/gandalf/modules/xdg.nix @@ -0,0 +1,17 @@ +{ config, ... }: { + + xdg.userDirs = { + enable = true; + createDirectories = true; + desktop = "${config.home.homeDirectory}/tmp"; + documents = "${config.home.homeDirectory}/docs"; + download = "${config.home.homeDirectory}/dl"; + music = "${config.home.homeDirectory}/music"; + pictures = "${config.home.homeDirectory}/pics"; + publicShare = "${config.home.homeDirectory}/public"; + templates = "${config.home.homeDirectory}/templates"; + videos = "${config.home.homeDirectory}/vids"; + }; + + +}