From c608f58b5a75ac2bc7b95c5094ff6bf3766b7ac9 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sat, 11 Jul 2026 19:13:19 +0100 Subject: [PATCH] =?UTF-8?q?fix(home):=20pin=20xdg.userDirs.setSessionVaria?= =?UTF-8?q?bles=20=E2=80=94=20HM=2026.05=20default=20flip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit home-manager 26.05 changes the default to false and warns on every eval when home.stateVersion is older (every migrated machine). Pin the legacy true: scripts and non-glib apps read the XDG_*_DIR session vars, and an explicit value gives all downstreams identical behavior regardless of stateVersion. mkDefault so a downstream can still opt out. Co-Authored-By: Claude Fable 5 --- modules/home/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/home/default.nix b/modules/home/default.nix index 548d8f7..33feddf 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -64,6 +64,11 @@ xdg.userDirs = { enable = lib.mkDefault true; createDirectories = lib.mkDefault true; + # Pinned: HM 26.05 flips the default to false (and warns on every eval + # for older stateVersions). Keep exporting XDG_*_DIR into the session — + # scripts and non-glib apps read the vars, and pinning gives every + # downstream the same behavior regardless of its stateVersion. + setSessionVariables = lib.mkDefault true; }; home.stateVersion = lib.mkDefault "26.05";