From 1b0a5eb54a9b41ca52e26c5d23197ade7cdb63b3 Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Sun, 21 Jan 2018 21:01:26 +0100 Subject: [PATCH] polybar: fix the case when config value is a path Polybar treats 'include-file' property differently. In particular, its value can't be enclosed in double quotes. Fixes #185. --- modules/services/polybar.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index b218c6c61..52ea7b4ec 100644 --- a/modules/services/polybar.nix +++ b/modules/services/polybar.nix @@ -13,7 +13,7 @@ let let value' = if isBool value then (if value then "true" else "false") - else if isString value then "\"${value}\"" + else if (isString value && key != "include-file") then ''"${value}"'' else toString value; in "${key}=${value'}";