From 97114ff35c9e0a8db2e871a357d62c464b51be15 Mon Sep 17 00:00:00 2001 From: Mohamed Chrayed Date: Sat, 14 Mar 2026 12:07:34 +0100 Subject: [PATCH] xdg user dirs --- modules/kde/usr/plasma-deck.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/kde/usr/plasma-deck.nix b/modules/kde/usr/plasma-deck.nix index b31228f..7c3f8c3 100644 --- a/modules/kde/usr/plasma-deck.nix +++ b/modules/kde/usr/plasma-deck.nix @@ -3,7 +3,20 @@ flake.homeModules.kde-usr-plasma-deck = { config, ... }: { - home.file."Desktop/Spielmodus.desktop".text = '' + xdg.userDirs = { + enable = true; + createDirectories = true; + desktop = "${config.home.homeDirectory}/Schreibtisch"; + download = "${config.home.homeDirectory}/Downloads"; + templates = "${config.home.homeDirectory}/Vorlagen"; + publicShare = "${config.home.homeDirectory}/Öffentlich"; + documents = "${config.home.homeDirectory}/Dokumente"; + music = "${config.home.homeDirectory}/Musik"; + pictures = "${config.home.homeDirectory}/Bilder"; + videos = "${config.home.homeDirectory}/Videos"; + }; + + home.file."Schreibtisch/Spielmodus.desktop".text = '' [Desktop Entry] Name=Spielmodus Exec=qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout @@ -12,6 +25,7 @@ Type=Application Categories=Game; ''; + imports = [ inputs.plasma-manager.homeModules.plasma-manager ]; home.file."Code/.directory".source = ./dotfiles/code-folder; home.file.".config/haruna/haruna.conf".source = ./dotfiles/haruna-config; @@ -68,7 +82,7 @@ location = "bottom"; floating = true; alignment = "center"; - height = 46; + height = 48; lengthMode = "fit"; hiding = "dodgewindows"; widgets = [