From 745099b4d302c366666a2cef77ecc57eb46d6da9 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 22 Mar 2026 16:00:06 +0100 Subject: [PATCH] fix: xdg user dirs???????? --- configuration.nix | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/configuration.nix b/configuration.nix index 968911e..46be2d8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -130,6 +130,26 @@ in method=auto ''; }; + + "xdg/user-dirs.defaults".text = '' + DESKTOP=Escritorio + DOWNLOAD=Descargas + DOCUMENTS=Documentos + MUSIC=Música + PICTURES=Imágenes + VIDEOS=Vídeos + TEMPLATES=Plantillas + PUBLICSHARE=Público + ''; + + "xdg/autostart/xdg-user-dirs.desktop".text = '' + [Desktop Entry] + Type=Application + Name=Update XDG user dirs + Exec=${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update + NoDisplay=true + X-KDE-autostart-phase=1 + ''; }; # todo: this doesnt actually work so we might just configure it thru kde @@ -140,18 +160,6 @@ in services.pipewire.enable = true; - # create standard user folders - systemd.tmpfiles.rules = [ - "d ${homeDir}/Escritorio 0755 ${username} users -" - "d ${homeDir}/Descargas 0755 ${username} users -" - "d ${homeDir}/Documentos 0755 ${username} users -" - "d ${homeDir}/Imágenes 0755 ${username} users -" - "d ${homeDir}/Música 0755 ${username} users -" - "d ${homeDir}/Vídeos 0755 ${username} users -" - "d ${homeDir}/Público 0755 ${username} users -" - "d ${homeDir}/Plantillas 0755 ${username} users -" - ]; - # using rootless docker to avoid literally giving out root access virtualisation.docker = { enable = false;