···781781 </listitem>
782782 <listitem>
783783 <para>
784784+ The fontconfig service’s dpi option has been removed.
785785+ Fontconfig should use Xft settings by default so there’s no
786786+ need to override one value in multiple places. The user can
787787+ set DPI via ~/.Xresources properly, or at the system level per
788788+ monitor, or as a last resort at the system level with
789789+ <literal>services.xserver.dpi</literal>.
790790+ </para>
791791+ </listitem>
792792+ <listitem>
793793+ <para>
784794 The <literal>yambar</literal> package has been split into
785795 <literal>yambar</literal> and
786796 <literal>yambar-wayland</literal>, corresponding to the xorg
+4
nixos/doc/manual/release-notes/rl-2111.section.md
···223223224224- The `openrazer` and `openrazer-daemon` packages as well as the `hardware.openrazer` module now require users to be members of the `openrazer` group instead of `plugdev`. With this change, users no longer need be granted the entire set of `plugdev` group permissions, which can include permissions other than those required by `openrazer`. This is desirable from a security point of view. The setting [`harware.openrazer.users`](options.html#opt-services.hardware.openrazer.users) can be used to add users to the `openrazer` group.
225225226226+- The fontconfig service's dpi option has been removed.
227227+ Fontconfig should use Xft settings by default so there's no need to override one value in multiple places.
228228+ The user can set DPI via ~/.Xresources properly, or at the system level per monitor, or as a last resort at the system level with `services.xserver.dpi`.
229229+226230- The `yambar` package has been split into `yambar` and `yambar-wayland`, corresponding to the xorg and wayland backend respectively. Please switch to `yambar-wayland` if you are on wayland.
227231228232- The `services.minio` module gained an additional option `consoleAddress`, that
+1-17
nixos/modules/config/fonts/fontconfig.nix
···7878 </edit>
7979 </match>
80808181- ${optionalString (cfg.dpi != 0) ''
8282- <match target="pattern">
8383- <edit name="dpi" mode="assign">
8484- <double>${toString cfg.dpi}</double>
8585- </edit>
8686- </match>
8787- ''}
8888-8981 </fontconfig>
9082 '';
9183···237229 (mkRemovedOptionModule [ "fonts" "fontconfig" "hinting" "style" ] "")
238230 (mkRemovedOptionModule [ "fonts" "fontconfig" "forceAutohint" ] "")
239231 (mkRemovedOptionModule [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ] "")
232232+ (mkRemovedOptionModule [ "fonts" "fontconfig" "dpi" ] "Use display server-specific options")
240233 ] ++ lib.forEach [ "enable" "substitutions" "preset" ]
241234 (opt: lib.mkRemovedOptionModule [ "fonts" "fontconfig" "ultimate" "${opt}" ] ''
242235 The fonts.fontconfig.ultimate module and configuration is obsolete.
···279272 Enable font antialiasing. At high resolution (> 200 DPI),
280273 antialiasing has no visible effect; users of such displays may want
281274 to disable this option.
282282- '';
283283- };
284284-285285- dpi = mkOption {
286286- type = types.int;
287287- default = 0;
288288- description = ''
289289- Force DPI setting. Setting to <literal>0</literal> disables DPI
290290- forcing; the DPI detected for the display will be used.
291275 '';
292276 };
293277
···297297 dpi = mkOption {
298298 type = types.nullOr types.int;
299299 default = null;
300300- description = "DPI resolution to use for X server.";
300300+ description = ''
301301+ Force global DPI resolution to use for X server. It's recommended to
302302+ use this only when DPI is detected incorrectly; also consider using
303303+ <literal>Monitor</literal> section in configuration file instead.
304304+ '';
301305 };
302306303307 updateDbusEnvironment = mkOption {