From 3e1b1efa6f1b3b6f3d47aea783418972e6fb6ade Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Mon, 6 Apr 2026 21:39:17 +0100 Subject: [PATCH] refactor: safe stylix wallpaper path interpolation --- modules/home/stylix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/home/stylix.nix b/modules/home/stylix.nix index 7ffd492..63dcffd 100644 --- a/modules/home/stylix.nix +++ b/modules/home/stylix.nix @@ -6,8 +6,9 @@ let activeThemeName = config.nomarchy.theme; activeWallpaper = if config.nomarchy.wallpaper != "" then + # Use the absolute path from the state file (string format to avoid Nix Store copy) config.nomarchy.wallpaper - else "${../../assets/themes/catppuccin/backgrounds/1-totoro.png}"; # Fallback + else ../../assets/themes/catppuccin/backgrounds/1-totoro.png; # Fallback path object (copied to store) # Map nix-colors palette to a format Stylix expects (attrset of hex strings) currentPalette = (palettes.${activeThemeName} or palettes.nord).palette;