From c1a01c591f18a35c20f396a28f99d12d1de0ec88 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:18:36 +0100 Subject: [PATCH] treewide: remove redundant stylix.image escaping and string coercion Remove redundant shell escaping and string coercion as stylix.image is guaranteed to be a stringified store path with a valid string context and no special characters. Fixes: 3499e3ec704b ("treewide: properly quote stylix.image when used as a shell argument") (cherry picked from commit 61c9f4dd1435e0723fe675d44459a88b9203418d) --- modules/hyprlock/hm.nix | 4 +--- modules/hyprpaper/hm.nix | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/hyprlock/hm.nix b/modules/hyprlock/hm.nix index 74c54a9c..8c59fa38 100644 --- a/modules/hyprlock/hm.nix +++ b/modules/hyprlock/hm.nix @@ -11,9 +11,7 @@ mkTarget { ( { cfg, image }: { - programs.hyprlock.settings.background.path = lib.mkIf cfg.useWallpaper "${ - image - }"; + programs.hyprlock.settings.background.path = lib.mkIf cfg.useWallpaper image; } ) ( diff --git a/modules/hyprpaper/hm.nix b/modules/hyprpaper/hm.nix index 6018b217..e623e55f 100644 --- a/modules/hyprpaper/hm.nix +++ b/modules/hyprpaper/hm.nix @@ -4,7 +4,7 @@ mkTarget { { image }: { services.hyprpaper.settings = { - preload = [ "${image}" ]; + preload = [ image ]; wallpaper = [ ",${image}" ]; }; };