From 311635a94215182e4e29aea138244b13d2897272 Mon Sep 17 00:00:00 2001 From: Alexandros Karypidis <1221101+karypid@users.noreply.github.com> Date: Tue, 25 Mar 2025 21:46:39 +0000 Subject: [PATCH] home-manager: use --argstr for news file paths to handle special chars Fix #5279 where paths with special characters such as @ break news handling. --- home-manager/home-manager | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/home-manager b/home-manager/home-manager index ddd9879b0..afcc0fb19 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -791,8 +791,8 @@ function buildNews() { nix-instantiate \ --no-build-output --strict \ --eval '' \ - --arg newsJsonFile "\"$(escapeForNix "$newsJsonFile")\"" \ - --arg newsReadIdsFile "\"$(escapeForNix "$readIdsFile")\"" \ + --argstr newsJsonFile "\"$(escapeForNix "$newsJsonFile")\"" \ + --argstr newsReadIdsFile "\"$(escapeForNix "$readIdsFile")\"" \ "${extraArgs[@]}" \ > "$newsNixFile" }