<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Fonts%2Fzh-cn</id>
	<title>Fonts/zh-cn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Fonts%2Fzh-cn"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;action=history"/>
	<updated>2026-07-09T08:44:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32881&amp;oldid=prev</id>
		<title>ZhX589: Created page with &quot;尽管这些字体包看起来与普通包无异，但仅将它们添加到 `environment.systemPackages` 并不会让应用程序能够访问这些字体。要实现这一点，应将它们放入 NixOS 的 `[https://search.nixos.org/options?channel=unstable&amp;show=fonts.packages&amp;from=0&amp;size=50&amp;sort=relevance&amp;type=packages&amp;query=fonts.packages fonts.packages]` 选项列表中。&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32881&amp;oldid=prev"/>
		<updated>2026-07-09T05:39:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;尽管这些字体包看起来与普通包无异，但仅将它们添加到 `environment.systemPackages` 并不会让应用程序能够访问这些字体。要实现这一点，应将它们放入 NixOS 的 `[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]` 选项列表中。&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:39, 9 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS 有许多可用的字体包，你可以轻松地在这里搜索并使用他们： [https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS 有许多可用的字体包，你可以轻松地在这里搜索并使用他们： [https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span lang=&quot;en&quot; dir=&quot;ltr&quot; class=&quot;mw-content-ltr&quot;&amp;gt;Despite looking like normal packages, simply adding these font packages to your &amp;lt;code&amp;gt;&lt;/del&gt;environment.systemPackages&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; won&#039;t make the fonts accessible to applications. To achieve that, put these packages in the &amp;lt;code&amp;gt;&lt;/del&gt;[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; NixOS options list instead.&amp;lt;/span&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;尽管这些字体包看起来与普通包无异，但仅将它们添加到 `&lt;/ins&gt;environment.systemPackages&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;` 并不会让应用程序能够访问这些字体。要实现这一点，应将它们放入 NixOS 的 `&lt;/ins&gt;[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;` 选项列表中。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-32879:rev-32881:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ZhX589</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32879&amp;oldid=prev</id>
		<title>ZhX589: Created page with &quot;NixOS 有许多可用的字体包，你可以轻松地在这里搜索并使用他们：&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32879&amp;oldid=prev"/>
		<updated>2026-07-09T05:38:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;NixOS 有许多可用的字体包，你可以轻松地在这里搜索并使用他们：&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:38, 9 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;在 NixOS 上安装字体&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;在 NixOS 上安装字体&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span lang=&quot;en&quot; dir=&quot;ltr&quot; class=&quot;mw-content-ltr&quot;&amp;gt;&lt;/del&gt;NixOS &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;has many font packages available, and you can easily search for your favorites on the&amp;lt;/span&amp;gt; &lt;/del&gt;[https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;有许多可用的字体包，你可以轻松地在这里搜索并使用他们： &lt;/ins&gt;[https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;Despite looking like normal packages, simply adding these font packages to your &amp;lt;code&amp;gt;environment.systemPackages&amp;lt;/code&amp;gt; won&amp;#039;t make the fonts accessible to applications. To achieve that, put these packages in the &amp;lt;code&amp;gt;[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]&amp;lt;/code&amp;gt; NixOS options list instead.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;Despite looking like normal packages, simply adding these font packages to your &amp;lt;code&amp;gt;environment.systemPackages&amp;lt;/code&amp;gt; won&amp;#039;t make the fonts accessible to applications. To achieve that, put these packages in the &amp;lt;code&amp;gt;[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]&amp;lt;/code&amp;gt; NixOS options list instead.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-32877:rev-32879:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ZhX589</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32877&amp;oldid=prev</id>
		<title>ZhX589: Created page with &quot;在 NixOS 上安装字体&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32877&amp;oldid=prev"/>
		<updated>2026-07-09T05:37:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;在 NixOS 上安装字体&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:37, 9 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS 处理字体就像处理系统中许多不同部分一样：除非明确标记为环境的一部分，否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS 处理字体就像处理系统中许多不同部分一样：除非明确标记为环境的一部分，否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span lang=&quot;en&quot; dir=&quot;ltr&quot; class=&quot;mw-content-ltr&quot;&amp;gt;== Installing fonts on &lt;/del&gt;NixOS &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==&amp;lt;/span&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;在 &lt;/ins&gt;NixOS &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;上安装字体&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;NixOS has many font packages available, and you can easily search for your favorites on the&amp;lt;/span&amp;gt; [https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;NixOS has many font packages available, and you can easily search for your favorites on the&amp;lt;/span&amp;gt; [https://search.nixos.org/packages NixOS packages site].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-32875:rev-32877:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ZhX589</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32875&amp;oldid=prev</id>
		<title>ZhX589: Created page with &quot;NixOS 处理字体就像处理系统中许多不同部分一样：除非明确标记为环境的一部分，否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32875&amp;oldid=prev"/>
		<updated>2026-07-09T05:37:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;NixOS 处理字体就像处理系统中许多不同部分一样：除非明确标记为环境的一部分，否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:37, 9 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div lang=&quot;en&quot; dir=&quot;ltr&quot; class=&quot;mw-content-ltr&quot;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;处理字体就像处理系统中许多不同部分一样：除非明确标记为环境的一部分，否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。 &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;NixOS &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;handles fonts like it handles many different parts of the system: they are not in an environment unless explicitly marked to be part of it. This guide covers the installation, configuration and troubleshooting of fonts.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;== Installing fonts on NixOS ==&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;== Installing fonts on NixOS ==&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-32873:rev-32875:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ZhX589</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32873&amp;oldid=prev</id>
		<title>ZhX589: Created page with &quot;字体&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Fonts/zh-cn&amp;diff=32873&amp;oldid=prev"/>
		<updated>2026-07-09T05:36:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;字体&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
NixOS handles fonts like it handles many different parts of the system: they are not in an environment unless explicitly marked to be part of it. This guide covers the installation, configuration and troubleshooting of fonts.&lt;br /&gt;
&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;== Installing fonts on NixOS ==&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;NixOS has many font packages available, and you can easily search for your favorites on the&amp;lt;/span&amp;gt; [https://search.nixos.org/packages NixOS packages site]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;Despite looking like normal packages, simply adding these font packages to your &amp;lt;code&amp;gt;environment.systemPackages&amp;lt;/code&amp;gt; won&amp;#039;t make the fonts accessible to applications. To achieve that, put these packages in the &amp;lt;code&amp;gt;[https://search.nixos.org/options?channel=unstable&amp;amp;show=fonts.packages&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.packages fonts.packages]&amp;lt;/code&amp;gt; NixOS options list instead.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;For example:&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{File|3=fonts.packages = with pkgs; [&lt;br /&gt;
  noto-fonts&lt;br /&gt;
  noto-fonts-cjk-sans&lt;br /&gt;
  noto-fonts-color-emoji&lt;br /&gt;
  liberation_ttf&lt;br /&gt;
  fira-code&lt;br /&gt;
  fira-code-symbols&lt;br /&gt;
  mplus-outline-fonts.githubRelease&lt;br /&gt;
  dina-font&lt;br /&gt;
  proggyfonts&lt;br /&gt;
];|name=/etc/nixos/configuration.nix|lang=nix}}{{Note|Be aware that sometimes font names and packages name differ and there is no universal convention in NixOS. &amp;lt;/br&amp;gt;See: [https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/2 Guidelines for font packaging]}}&lt;br /&gt;
&lt;br /&gt;
=== Shorthands for fonts ===&lt;br /&gt;
* &amp;lt;code&amp;gt;fonts.enableDefaultPackages&amp;lt;/code&amp;gt;: when set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, causes some &amp;quot;basic&amp;quot; fonts to be installed for reasonable Unicode coverage. Set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if you are unsure about what languages you might end up reading.&lt;br /&gt;
* &amp;lt;code&amp;gt;fonts.enableGhostscriptFonts&amp;lt;/code&amp;gt;: affects the &amp;lt;code&amp;gt;ghostscript&amp;lt;/code&amp;gt; package. Ghostscript packages some URW fonts for the standard PostScript typefaces. If &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, these fonts will be visible to GUI applications. You could set it to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if you want these fonts, but &amp;lt;code&amp;gt;gyre-fonts&amp;lt;/code&amp;gt; (part of &amp;lt;code&amp;gt;fonts.enableDefaultPackages&amp;lt;/code&amp;gt;) might be higher-quality depending on your judgement.&lt;br /&gt;
&lt;br /&gt;
=== Using fonts from TexLive ===&lt;br /&gt;
You can make use of all TeX/LaTeX fonts from CTAN and [[TexLive]] by passing&lt;br /&gt;
the &amp;lt;code&amp;gt;fonts&amp;lt;/code&amp;gt; attribute of your TexLive package to &amp;lt;code&amp;gt;fonts.package&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{File|3={ pkgs, ... }:&lt;br /&gt;
let&lt;br /&gt;
  mytex =&lt;br /&gt;
    pkgs.texliveConTeXt.withPackages&lt;br /&gt;
      (ps: with ps; [ &lt;br /&gt;
        fandol&lt;br /&gt;
        libertinus-fonts&lt;br /&gt;
      ]);&lt;br /&gt;
in {&lt;br /&gt;
  fonts.packages = builtins.attrValues {&lt;br /&gt;
    inherit (pkgs)&lt;br /&gt;
      dejavu_fonts &lt;br /&gt;
      noto-fonts-cjk-serif&lt;br /&gt;
      noto-fonts-cjk-sans&lt;br /&gt;
      julia-mono;&lt;br /&gt;
  } ++ [ mytex.fonts ];&lt;br /&gt;
}|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
=== Installing &amp;lt;code&amp;gt;nerdfonts&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Individual Nerd Fonts can be installed like so:&lt;br /&gt;
&lt;br /&gt;
{{File|3=fonts.packages = with pkgs; [&lt;br /&gt;
  nerd-fonts.fira-code&lt;br /&gt;
  nerd-fonts.droid-sans-mono&lt;br /&gt;
];|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The available Nerd Font subpackages can be listed by searching for {{nixos:package|nerd-fonts.*}} on the [[Searching packages|NixOS Package Search]] or by running the following command: &amp;lt;syntaxhighlight lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ nix-instantiate --eval --expr &amp;quot;with (import &amp;lt;nixpkgs&amp;gt; {}); lib.attrNames (lib.filterAttrs (_: lib.isDerivation) nerd-fonts)&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Installing all &amp;lt;code&amp;gt;nerdfonts&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Installing all fonts from the [https://www.nerdfonts.com/ Nerd Fonts repository] is as simple as adding all of the individual packages to the NixOS configuration. The following line will do exactly that, by searching for all derivations under the &amp;lt;code&amp;gt;nerd-font&amp;lt;/code&amp;gt; attribute:{{file|||&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{ &lt;br /&gt;
  fonts.packages = builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# or if you already have fonts.packages set&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  fonts.packages = [&lt;br /&gt;
     # ... some fonts&lt;br /&gt;
  ] &lt;br /&gt;
  ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
=== Patching nerdfonts into fonts ===&lt;br /&gt;
Not all fonts have Nerd Fonts variants, thankfully you can easily patch them in yourself.&lt;br /&gt;
{{File|3=(pkgs.scientifica.overrideAttrs (o: {&lt;br /&gt;
  nativeBuildInputs = [ pkgs.nerd-font-patcher ];&lt;br /&gt;
  postInstall = &amp;#039;&amp;#039;&lt;br /&gt;
    mkdir -p $out/share/fonts/truetype/{scientifica,scientifica-nerd}&lt;br /&gt;
    mv $out/share/fonts/truetype/*.ttf $out/share/fonts/truetype/scientifica/&lt;br /&gt;
    for f in $out/share/fonts/truetype/scientifica/*.ttf; do&lt;br /&gt;
      nerd-font-patcher --complete --outputdir $out/share/fonts/truetype/scientifica-nerd/ $f&lt;br /&gt;
    done&lt;br /&gt;
  &amp;#039;&amp;#039;;&lt;br /&gt;
}))|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
=== Let Fontconfig know the fonts within your Nix profile ===&lt;br /&gt;
Nix inserts its user profile path into &amp;lt;code&amp;gt;$XDG_DATA_DIRS&amp;lt;/code&amp;gt;, which Fontconfig by default doesn&amp;#039;t look in. This cause graphical applications like KDE Plasma not able to recognize the fonts installed via &amp;lt;code&amp;gt;nix-env&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;nix profile&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To solve this, add the file &amp;lt;code&amp;gt;100-nix.conf&amp;lt;/code&amp;gt; to your Fontconfig user configuration directory (usually &amp;lt;code&amp;gt;$XDG_CONFIG_HOME/fontconfig/conf.d&amp;lt;/code&amp;gt;):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE fontconfig SYSTEM &amp;quot;urn:fontconfig:fonts.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;!-- NIX_PROFILE is the path to your Nix profile. See Nix Reference Manual for details. --&amp;gt;&lt;br /&gt;
  &amp;lt;dir&amp;gt;NIX_PROFILE/lib/X11/fonts&amp;lt;/dir&amp;gt;&lt;br /&gt;
  &amp;lt;dir&amp;gt;NIX_PROFILE/share/fonts&amp;lt;/dir&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
and run &amp;lt;code&amp;gt;fc-cache&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Alternatively, [https://nix-community.github.io/home-manager/options.xhtml#opt-fonts.fontconfig.enable enable Fontconfig configuration] in your Home Manager configuration.&lt;br /&gt;
&lt;br /&gt;
=== Imperative installation of user fonts ===&lt;br /&gt;
This is useful for quick font experiments.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;: Install &amp;lt;code&amp;gt;SourceCodePro-Regular&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;font=$(nix-build --no-out-link &amp;#039;&amp;lt;nixpkgs&amp;gt;&amp;#039; -A source-code-pro)/share/fonts/opentype/SourceCodePro-Regular.otf&lt;br /&gt;
cp $font ~/.local/share/fonts&lt;br /&gt;
fc-cache&lt;br /&gt;
# Verify that the font has been installed&lt;br /&gt;
fc-list -v | grep -i source&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install fonts in nix-shells ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fonts&amp;lt;/code&amp;gt; is not available as set-valued option in &amp;lt;code&amp;gt;mkshell&amp;lt;/code&amp;gt; (gives you an error because it tries to coerce an attribute set into a string). Instead, insert the following:&amp;lt;ref&amp;gt;https://programming.dev/post/32484220&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
{pkgs ? import &amp;lt;nixpkgs&amp;gt; {} }:&lt;br /&gt;
let&lt;br /&gt;
  fontsConf = pkgs.makeFontsConf {&lt;br /&gt;
    fontDirectories = [&lt;br /&gt;
      # your needed fonts here, e.g.:&lt;br /&gt;
      pkgs.font-awesome&lt;br /&gt;
      pkgs.atkinson-hyperlegible-next&lt;br /&gt;
    ];&lt;br /&gt;
  };&lt;br /&gt;
in&lt;br /&gt;
  pkgs.mkShell {&lt;br /&gt;
    packages = with pkgs; [&lt;br /&gt;
      # your font-dependent packages, e.g.:&lt;br /&gt;
      typst&lt;br /&gt;
    ];&lt;br /&gt;
    shellHook = &amp;#039;&amp;#039;&lt;br /&gt;
      export FONTCONFIG_FILE=&amp;quot;${fontsConf}&amp;quot;&lt;br /&gt;
    &amp;#039;&amp;#039;;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then &amp;lt;code&amp;gt;typst fonts&amp;lt;/code&amp;gt; finds the installed fonts in the nix-shell.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring fonts ==&lt;br /&gt;
&lt;br /&gt;
The nixos key [https://search.nixos.org/options?channel=unstable&amp;amp;from=0&amp;amp;size=50&amp;amp;sort=relevance&amp;amp;type=packages&amp;amp;query=fonts.fontconfig &amp;lt;code&amp;gt;fonts.fontconfig&amp;lt;/code&amp;gt;] (click to see the full list!) handles the fontconfig options. Some options are nicely wrapped in nix; there&amp;#039;s always &amp;lt;code&amp;gt;localConf&amp;lt;/code&amp;gt; to go straight to the XML. &lt;br /&gt;
&lt;br /&gt;
=== Set multiple fonts for different languages ===&lt;br /&gt;
If you want to use other languages alongside English, you may want to set appropriate fonts for each language in your whole OS. For example, a Persian speaker might want to use the [https://rastikerdar.github.io/vazirmatn/ Vazirmatn] font for Persian texts, but [https://design.ubuntu.com/font/ Ubuntu] and Liberation Serif fonts for English texts. Just put these lines into your &amp;lt;code&amp;gt;configuration.nix&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{File|3=#----=[ Fonts ]=----#&lt;br /&gt;
fonts = {&lt;br /&gt;
  enableDefaultPackages = true;&lt;br /&gt;
  packages = with pkgs; [ &lt;br /&gt;
    ubuntu-classic&lt;br /&gt;
    liberation_ttf&lt;br /&gt;
    # Persian Font&lt;br /&gt;
    vazir-fonts&lt;br /&gt;
  ];&lt;br /&gt;
&lt;br /&gt;
  fontconfig = {&lt;br /&gt;
    defaultFonts = {&lt;br /&gt;
      serif = [  &amp;quot;Liberation Serif&amp;quot; &amp;quot;Vazirmatn&amp;quot; ];&lt;br /&gt;
      sansSerif = [ &amp;quot;Ubuntu&amp;quot; &amp;quot;Vazirmatn&amp;quot; ];&lt;br /&gt;
      monospace = [ &amp;quot;Ubuntu Mono&amp;quot; ];&lt;br /&gt;
    };&lt;br /&gt;
  };&lt;br /&gt;
};|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
NB:&lt;br /&gt;
* This actually just sets the font fallback order so that fontconfig tries using the English font first, then falls back to another font if the character set is not covered. You &amp;#039;&amp;#039;usually&amp;#039;&amp;#039; want to write the English font &amp;#039;&amp;#039;before&amp;#039;&amp;#039; the other-language font, because the other-language font might cover Latin characters too, preventing the English font from showing up.&lt;br /&gt;
* &amp;lt;code&amp;gt;defaultFonts&amp;lt;/code&amp;gt; translates to &amp;lt;code&amp;gt;&amp;amp;lt;prefer&amp;amp;gt;&amp;lt;/code&amp;gt; in the actual fontconfig file. See https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/config/fonts/fontconfig.nix for how NixOS does it, and the links below for how fontconfig interpret it.&lt;br /&gt;
* Vazirmatn is actually a &amp;quot;sans-serif&amp;quot; font; using it for &amp;lt;code&amp;gt;serif&amp;lt;/code&amp;gt; is not a good visual match. You might need not one, but two (or if you count monospace, three!) font packages for a language.&lt;br /&gt;
&lt;br /&gt;
=== Use custom font substitutions ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, documents may appear to have bad kerning or hard-to-read letter spacing, due to a bad substitution.&lt;br /&gt;
For example, Okular may show in the &amp;#039;&amp;#039;Document Properties&amp;#039;&amp;#039; dialog that it has substituted DejaVu Sans Mono (a sans-serif font) in place of &amp;quot;NewCenturySchlbk&amp;quot;. &amp;lt;code&amp;gt;fc-match NewCenturySchlbk&amp;lt;/code&amp;gt; would display similiar info.&lt;br /&gt;
&lt;br /&gt;
Adding this to your &amp;lt;code&amp;gt;/etc/nixos/configuration.nix&amp;lt;/code&amp;gt; should prompt it to use the more similar (and nicer) serif &amp;#039;&amp;#039;Schola&amp;#039;&amp;#039; font instead:&lt;br /&gt;
&lt;br /&gt;
{{File|3=fonts = {&lt;br /&gt;
  packages = with pkgs; [ gyre-fonts ];&lt;br /&gt;
  fontconfig = {&lt;br /&gt;
    localConf = &amp;#039;&amp;#039;&lt;br /&gt;
      &amp;lt;!-- use a less horrible font substition for pdfs such as https://www.bkent.net/Doc/mdarchiv.pdf --&amp;gt;&lt;br /&gt;
      &amp;lt;match target=&amp;quot;pattern&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;test qual=&amp;quot;any&amp;quot; name=&amp;quot;family&amp;quot;&amp;gt;&amp;lt;string&amp;gt;NewCenturySchlbk&amp;lt;/string&amp;gt;&amp;lt;/test&amp;gt;&lt;br /&gt;
        &amp;lt;edit name=&amp;quot;family&amp;quot; mode=&amp;quot;assign&amp;quot; binding=&amp;quot;same&amp;quot;&amp;gt;&amp;lt;string&amp;gt;TeX Gyre Schola&amp;lt;/string&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
      &amp;lt;/match&amp;gt;&lt;br /&gt;
    &amp;#039;&amp;#039;;&lt;br /&gt;
  };&lt;br /&gt;
};|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
For more information and examples on the xml configuration language:&lt;br /&gt;
&lt;br /&gt;
* https://www.mankier.com/5/fonts-conf&lt;br /&gt;
* https://wiki.archlinux.org/index.php/Font_configuration&lt;br /&gt;
* https://wiki.archlinux.org/index.php/Font_configuration/Examples&lt;br /&gt;
&lt;br /&gt;
For a list of suitable replacement fonts:&lt;br /&gt;
* https://wiki.archlinux.org/title/Metric-compatible_fonts&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== What font names can be used in &amp;lt;code&amp;gt;fonts.fontconfig.defaultFonts.monospace&amp;lt;/code&amp;gt;? ===&lt;br /&gt;
&lt;br /&gt;
Those that fontconfig will understand. This can be queried from a font file using &amp;lt;code&amp;gt;fc-query&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ cd /nix/var/nix/profiles/system/sw/share/X11/fonts&lt;br /&gt;
$ fc-query DejaVuSans.ttf | grep &amp;#039;^\s\+family:&amp;#039; | cut -d&amp;#039;&amp;quot;&amp;#039; -f2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you may need to set &amp;lt;code&amp;gt;fonts.fontDir.enable = true;&amp;lt;/code&amp;gt; for that X11/fonts directory to exist.&lt;br /&gt;
&lt;br /&gt;
=== Adding personal fonts to &amp;lt;code&amp;gt;~/.fonts&amp;lt;/code&amp;gt; doesn&amp;#039;t work ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;~/.fonts&amp;lt;/code&amp;gt; directory is being deprecated upstream&amp;lt;ref&amp;gt;https://lists.freedesktop.org/archives/fontconfig/2014-July/005269.html&amp;lt;/ref&amp;gt;. It already doesn&amp;#039;t work in NixOS. &lt;br /&gt;
&lt;br /&gt;
The new preferred location is in &amp;lt;code&amp;gt;$XDG_DATA_HOME/fonts&amp;lt;/code&amp;gt;, which for most users will resolve to &amp;lt;code&amp;gt;~/.local/share/fonts&amp;lt;/code&amp;gt;&amp;lt;ref&amp;gt;https://lists.freedesktop.org/archives/fontconfig/2014-July/005270.html&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Flatpak applications can&amp;#039;t find system fonts ===&lt;br /&gt;
&lt;br /&gt;
To expose available fonts under &amp;lt;code&amp;gt;/run/current-system/sw/share/X11/fonts&amp;lt;/code&amp;gt;, enable &amp;lt;code&amp;gt;fontDir&amp;lt;/code&amp;gt; in your NixOS configuration.&lt;br /&gt;
&lt;br /&gt;
{{File|3=fonts.fontDir.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}&lt;br /&gt;
&lt;br /&gt;
You will then need to link/copy this folder to one of the Flatpak-supported locations - see below.&lt;br /&gt;
&lt;br /&gt;
==== Solution 1: Copy fonts to &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt; ====&lt;br /&gt;
Create fonts directory &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt; and copy system fonts with option &amp;lt;code&amp;gt;-L, --dereference&amp;lt;/code&amp;gt;. You will need to repeat this step whenever the fonts change.&amp;lt;syntaxhighlight lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir $HOME/.local/share/fonts &amp;amp;&amp;amp; cp -L /run/current-system/sw/share/X11/fonts/* $HOME/.local/share/fonts/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Note: There is no need to grant flatpak applications access to &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Instead, if you do that, some applications (for example, steam) won&amp;#039;t work.&amp;lt;blockquote&amp;gt;Internals: How it works?&lt;br /&gt;
&lt;br /&gt;
Flatpak applications run in sandboxes. When you start a flatpak application, flatpak builds a rootfs for it with bubblewrap.&lt;br /&gt;
&lt;br /&gt;
With &amp;lt;code&amp;gt;findmnt --task {PID of flatpak app}&amp;lt;/code&amp;gt; , you can explore the details of its rootfs.&lt;br /&gt;
&lt;br /&gt;
By default, flatpak mounts &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;/run/host/user-fonts&amp;lt;/code&amp;gt; in rootfs of an flatpak application.&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;target&amp;quot;: &amp;quot;/run/host/user-fonts&amp;quot;,&lt;br /&gt;
  &amp;quot;source&amp;quot;: &amp;quot;/dev/disk/by-uuid/b2e1e6b5-738b-410b-b736-6d5c3dbbe31f[/home/username/.local/share/fonts]&amp;quot;,&lt;br /&gt;
  &amp;quot;fstype&amp;quot;: &amp;quot;ext4&amp;quot;,&lt;br /&gt;
  &amp;quot;options&amp;quot;: &amp;quot;ro,nosuid,nodev,relatime&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Then flatpak application can read fonts from that to display contents correctly.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Solution 2: Symlink to system fonts at  &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; this method doesn&amp;#039;t work for some flatpak applications (for example, steam)! &lt;br /&gt;
&lt;br /&gt;
Error: &amp;lt;syntaxhighlight lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ flatpak run com.valvesoftware.Steam&lt;br /&gt;
bwrap: Can&amp;#039;t make symlink at /home/username/.local/share/fonts: File exists&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/blockquote&amp;gt;Create a symlink in &amp;lt;code&amp;gt;XDG_DATA_HOME/fonts&amp;lt;/code&amp;gt; pointing to &amp;lt;code&amp;gt;/run/current-system/sw/share/X11/fonts&amp;lt;/code&amp;gt;, e. g. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir $HOME/.local/share/fonts &amp;amp;&amp;amp; ln -s /run/current-system/sw/share/X11/fonts ~/.local/share/fonts/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now you have two options.&lt;br /&gt;
&lt;br /&gt;
===== Option 1: Allow access to the fonts folder and &amp;lt;code&amp;gt;/nix/store&amp;lt;/code&amp;gt; =====&lt;br /&gt;
By using the Flatpak CLI or the Flatseal Flatpak make the following directory available to all Flatpaks &amp;lt;code&amp;gt;$HOME/.local/share/fonts&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$HOME/.icons&amp;lt;/code&amp;gt; the appropriate commands for this are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
flatpak --user override --filesystem=$HOME/.local/share/fonts:ro&lt;br /&gt;
flatpak --user override --filesystem=$HOME/.icons:ro&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And, because &amp;lt;code&amp;gt;~/.local/share/fonts&amp;lt;/code&amp;gt; is linked to &amp;lt;code&amp;gt;/run/current-system/sw/share/X11/fonts&amp;lt;/code&amp;gt;, which in turn is linked to content in &amp;lt;code&amp;gt;/nix/store&amp;lt;/code&amp;gt;. You need to grant flatpak applications access to the &amp;lt;code&amp;gt;/nix/store&amp;lt;/code&amp;gt; directory, so that they can load fonts correctly. You may need to reboot for this to fully take effect.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
flatpak --user override --filesystem=/nix/store:ro&lt;br /&gt;
flatpak --user override --filesystem=/run/current-system/sw/share/X11/fonts:ro&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Option 2: Allow access to the WHOLE filesystem =====&lt;br /&gt;
Allow them access the WHOLE filesystem of yours: &amp;lt;code&amp;gt;All system files&amp;lt;/code&amp;gt; in Flatseal or equivalently &amp;lt;code&amp;gt;filesystem=host&amp;lt;/code&amp;gt; available to your application, the command for this is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
flatpak --user override --filesystem=host&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is important to keep in mind that some flatpak apps may refuse to launch if given certain permissions, such as the Steam flatpak. &lt;br /&gt;
&lt;br /&gt;
==== Solution 3: Configure bindfs for fonts/cursors/icons support ====&lt;br /&gt;
Alternatively, you can expose relevant packages directly under &amp;lt;code&amp;gt;/usr/share/...&amp;lt;/code&amp;gt; paths. This will also enable Flatpak to use a custom cursor theme if you have one. This solution doesn&amp;#039;t require &amp;lt;code&amp;gt;fonts.fontDir.enable&amp;lt;/code&amp;gt; to be enabled.&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
  system.fsPackages = [ pkgs.bindfs ];&lt;br /&gt;
  fileSystems = let&lt;br /&gt;
    mkRoSymBind = path: {&lt;br /&gt;
      device = path;&lt;br /&gt;
      fsType = &amp;quot;fuse.bindfs&amp;quot;;&lt;br /&gt;
      options = [ &amp;quot;ro&amp;quot; &amp;quot;resolve-symlinks&amp;quot; &amp;quot;x-gvfs-hide&amp;quot; ];&lt;br /&gt;
    };&lt;br /&gt;
    fontsPkgs = config.fonts.packages ++ (with pkgs; [&lt;br /&gt;
        # Add your cursor themes and icon packages here&lt;br /&gt;
        bibata-cursors&lt;br /&gt;
        gnome-themes-extra&lt;br /&gt;
        # etc.&lt;br /&gt;
      ]);&lt;br /&gt;
    x11Fonts = pkgs.runCommand &amp;quot;X11-fonts&amp;quot;&lt;br /&gt;
      {&lt;br /&gt;
        preferLocalBuild = true;&lt;br /&gt;
        nativeBuildInputs = with pkgs; [&lt;br /&gt;
          gzip&lt;br /&gt;
          mkfontdir&lt;br /&gt;
        ];&lt;br /&gt;
      }&lt;br /&gt;
      (&amp;#039;&amp;#039;&lt;br /&gt;
        mkdir -p &amp;quot;$out/share/fonts&amp;quot;&lt;br /&gt;
        font_regexp=&amp;#039;.*\.\(ttf\|ttc\|otb\|otf\|pcf\|pfa\|pfb\|bdf\)\(\.gz\)?&amp;#039;&lt;br /&gt;
      &amp;#039;&amp;#039;&lt;br /&gt;
      + (builtins.concatStringsSep &amp;quot;\n&amp;quot; (builtins.map (pkg: &amp;#039;&amp;#039;&lt;br /&gt;
          find ${toString pkg} -regex &amp;quot;$font_regexp&amp;quot; \&lt;br /&gt;
            -exec ln -sf -t &amp;quot;$out/share/fonts&amp;quot; &amp;#039;{}&amp;#039; \;&lt;br /&gt;
        &amp;#039;&amp;#039;) fontsPkgs&lt;br /&gt;
        ))&lt;br /&gt;
      + &amp;#039;&amp;#039;&lt;br /&gt;
        cd &amp;quot;$out/share/fonts&amp;quot;&lt;br /&gt;
        mkfontscale&lt;br /&gt;
        mkfontdir&lt;br /&gt;
        cat $(find ${pkgs.font-alias}/ -name fonts.alias) &amp;gt;fonts.alias&lt;br /&gt;
      &amp;#039;&amp;#039;);&lt;br /&gt;
    aggregatedIcons = pkgs.buildEnv {&lt;br /&gt;
      name = &amp;quot;system-icons&amp;quot;;&lt;br /&gt;
      paths = fontsPkgs;&lt;br /&gt;
      pathsToLink = [&lt;br /&gt;
        &amp;quot;/share/icons&amp;quot;&lt;br /&gt;
      ];&lt;br /&gt;
    };&lt;br /&gt;
  in {&lt;br /&gt;
    &amp;quot;/usr/share/icons&amp;quot; = mkRoSymBind (aggregatedIcons + &amp;quot;/share/icons&amp;quot;);&lt;br /&gt;
    &amp;quot;/usr/share/fonts&amp;quot; = mkRoSymBind (x11Fonts + &amp;quot;/share/fonts&amp;quot;);&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
  fonts.packages = with pkgs; [&lt;br /&gt;
    noto-fonts&lt;br /&gt;
    noto-fonts-color-emoji&lt;br /&gt;
    noto-fonts-cjk-sans&lt;br /&gt;
  ];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Note that font cache inside flatpak container may not be recreated after changes to fonts in &amp;lt;code&amp;gt;/usr/share/fonts&amp;lt;/code&amp;gt;, because font cache seem to be relying on file timestamps that are missing in &amp;lt;code&amp;gt;/nix/store&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You can make sure that font directory is bind-mounted properly inside flatpak container by running &amp;lt;code&amp;gt;flatpak enter &amp;lt;instance&amp;gt; findmnt  | grep /run/host/fonts&amp;lt;/code&amp;gt;, or by running &amp;lt;code&amp;gt;flatpak enter &amp;lt;instance&amp;gt; ls -alh /run/host/fonts&amp;lt;/code&amp;gt; and compare it to &amp;lt;code&amp;gt;ls -alh /usr/share/fonts&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If everything is mounted properly, but you still do not see fonts in flatpak app - force font cache recreation inside flatpak container: &amp;lt;code&amp;gt;flatpak run --command=fc-cache &amp;lt;application id&amp;gt; -f -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Noto Color Emoji doesn&amp;#039;t render on Firefox ===&lt;br /&gt;
&lt;br /&gt;
Enable &amp;lt;code&amp;gt;useEmbeddedBitmaps&amp;lt;/code&amp;gt; in your NixOS configuration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
fonts.fontconfig.useEmbeddedBitmaps = true;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
[[Category:Configuration]]&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Fonts]]&lt;/div&gt;</summary>
		<author><name>ZhX589</name></author>
	</entry>
</feed>