From eb72b41480004998647ac5f4212191e944731c6b Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Sat, 30 Nov 2024 19:24:51 -0300 Subject: [PATCH] avoid problems --- modules/workspace.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/workspace.nix b/modules/workspace.nix index 1c29bc66..4e37f333 100644 --- a/modules/workspace.nix +++ b/modules/workspace.nix @@ -484,7 +484,8 @@ in }");'' } ${ - lib.optionalString (cfg.workspace.wallpaperBackground != null) + lib.optionalString + (cfg.workspace.wallpaperBackground != null || cfg.workspace.wallpaperBackground != { }) ''desktop.writeConfig("${ if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then "Blur" @@ -543,7 +544,8 @@ in }");'' } ${ - lib.optionalString (cfg.workspace.wallpaperBackground != null) + lib.optionalString + (cfg.workspace.wallpaperBackground != null || cfg.workspace.wallpaperBackground != { }) ''desktop.writeConfig("${ if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then "Blur"