From 218d4424b0634f8e9e3af92df7ca807bda529255 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Mon, 14 Jul 2025 00:21:22 +0200 Subject: [PATCH] treewide: remove redundant stylix.image Nix store copies (#1659) Link: https://github.com/nix-community/stylix/pull/1659 Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Reviewed-by: awwpotato --- modules/swaylock/hm.nix | 2 +- modules/wpaperd/hm.nix | 2 +- stylix/palette.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/swaylock/hm.nix b/modules/swaylock/hm.nix index b0aa4f59..910ef72f 100644 --- a/modules/swaylock/hm.nix +++ b/modules/swaylock/hm.nix @@ -71,7 +71,7 @@ mkTarget { ( { cfg, image }: { - programs.swaylock.settings.image = lib.mkIf cfg.useWallpaper "${image}"; + programs.swaylock.settings.image = lib.mkIf cfg.useWallpaper image; } ) ( diff --git a/modules/wpaperd/hm.nix b/modules/wpaperd/hm.nix index 5847c371..ed8e286f 100644 --- a/modules/wpaperd/hm.nix +++ b/modules/wpaperd/hm.nix @@ -25,7 +25,7 @@ mkTarget { in { services.wpaperd.settings.any = { - path = "${image}"; + path = image; } // modeAttrs; } ); diff --git a/stylix/palette.nix b/stylix/palette.nix index e7ae4626..112668ac 100644 --- a/stylix/palette.nix +++ b/stylix/palette.nix @@ -84,7 +84,7 @@ in default = pkgs.runCommand "palette.json" { } '' ${lib.getExe cfg.paletteGenerator} \ "${cfg.polarity}" \ - ${lib.escapeShellArg "${cfg.image}"} \ + ${cfg.image} \ "$out" ''; };