diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index 3bdc836e..c6ac01fb 100644 --- a/modules/services/polybar.nix +++ b/modules/services/polybar.nix @@ -10,7 +10,7 @@ let toPolybarIni = generators.toINI { mkKeyValue = key: value: - let + let quoted = v: if hasPrefix " " v || hasSuffix " " v then ''"${v}"'' @@ -20,7 +20,7 @@ let if isBool value then (if value then "true" else "false") else if (isString value && key != "include-file") then quoted value else toString value; - in + in "${key}=${value'}"; };