From b5574c71bec95159d5342c19f6d5221b68c2aaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Sun, 1 Sep 2024 15:55:12 +0200 Subject: [PATCH] Fix nested quotes in fontconfig.nix A sed with nested double quotes is inserting malformed XML into /etc/fonts/fonts.conf, this commit put the sed command into single quotes to properly insert double quotes to enclose the XML attribute. --- nixos/modules/config/fonts/fontconfig.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/fonts/fontconfig.nix b/nixos/modules/config/fonts/fontconfig.nix index 98d90ccc0fca..feb7546b8de8 100644 --- a/nixos/modules/config/fonts/fontconfig.nix +++ b/nixos/modules/config/fonts/fontconfig.nix @@ -183,7 +183,7 @@ let # horrible sed hack to add the line that was accidentally removed # from the default config in #324516 # FIXME: fix that, revert this - sed "5i /etc/fonts/conf.d" -i $dst/../fonts.conf + sed '5i /etc/fonts/conf.d' -i $dst/../fonts.conf # TODO: remove this legacy symlink once people stop using packages built before #95358 was merged mkdir -p $out/etc/fonts/2.11