diff --git a/stylix/palette.nix b/stylix/palette.nix index 9e72a67e..260f850f 100644 --- a/stylix/palette.nix +++ b/stylix/palette.nix @@ -28,10 +28,8 @@ in }; image = lib.mkOption { - type = lib.types.nullOr lib.types.path; # Ensure the path is copied to the store - apply = - value: if value == null || lib.isDerivation value then value else "${value}"; + type = with lib.types; nullOr (coercedTo path (src: "${src}") pathInStore); description = '' Wallpaper image.