From f5d4372d4162b88d5f84d69bb2741242238d9f2b Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 2 May 2023 17:26:11 +0200 Subject: [PATCH] Add xdg user dir definitions --- home-manager.nix | 4 ++++ home-manager/config/user-dirs.dirs | 15 +++++++++++++++ home-manager/config/user-dirs.locale | 1 + 3 files changed, 20 insertions(+) create mode 100644 home-manager/config/user-dirs.dirs create mode 100644 home-manager/config/user-dirs.locale diff --git a/home-manager.nix b/home-manager.nix index 7329c0d..851b6bb 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -126,6 +126,10 @@ in source = ./home-manager/config/Vorlagen; recursive = true; }; + # xdg user dirs + ".config/user-dirs.dirs".source = ./home-manager/config/user-dirs.dirs; + # xdg user locales + ".config/user-dirs.locale".source = ./home-manager/config/user-dirs.locale; }; services.mako.enable = true; diff --git a/home-manager/config/user-dirs.dirs b/home-manager/config/user-dirs.dirs new file mode 100644 index 0000000..51849c9 --- /dev/null +++ b/home-manager/config/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME/Schreibtisch" +XDG_DOWNLOAD_DIR="$HOME/Downloads" +XDG_TEMPLATES_DIR="$HOME/.config/Vorlagen" +XDG_PUBLICSHARE_DIR="$HOME/Öffentlich" +XDG_DOCUMENTS_DIR="$HOME/Dokumente" +XDG_MUSIC_DIR="$HOME/Musik" +XDG_PICTURES_DIR="$HOME/Bilder" +XDG_VIDEOS_DIR="$HOME/Videos" diff --git a/home-manager/config/user-dirs.locale b/home-manager/config/user-dirs.locale new file mode 100644 index 0000000..4dd13ef --- /dev/null +++ b/home-manager/config/user-dirs.locale @@ -0,0 +1 @@ +de_CH \ No newline at end of file