···34On NixOS, it can be installed using the following expression:
3536```nix
37-{ pkgs, ... }: { fonts.fonts = with pkgs; [ noto-fonts-emoji ]; }
0038```
···34On NixOS, it can be installed using the following expression:
3536```nix
37+{ pkgs, ... }: {
38+ fonts.packages = with pkgs; [ noto-fonts-emoji ];
39+}
40```
+2
nixos/doc/manual/release-notes/rl-2311.section.md
···123124- `buildGoModule` `go-modules` attrs have been renamed to `goModules`.
12500126- `services.fail2ban.jails` can now be configured with attribute sets defining settings and filters instead of lines. The stringed options `daemonConfig` and `extraSettings` have respectively been replaced by `daemonSettings` and `jails.DEFAULT.settings` which use attribute sets.
127128- The module [services.ankisyncd](#opt-services.ankisyncd.package) has been switched to [anki-sync-server-rs](https://github.com/ankicommunity/anki-sync-server-rs) from the old python version, which was difficult to update, had not been updated in a while, and did not support recent versions of anki.
···123124- `buildGoModule` `go-modules` attrs have been renamed to `goModules`.
125126+- The `fonts.fonts` and `fonts.enableDefaultFonts` options have been renamed to `fonts.packages` and `fonts.enableDefaultPackages` respectively.
127+128- `services.fail2ban.jails` can now be configured with attribute sets defining settings and filters instead of lines. The stringed options `daemonConfig` and `extraSettings` have respectively been replaced by `daemonSettings` and `jails.DEFAULT.settings` which use attribute sets.
129130- The module [services.ankisyncd](#opt-services.ankisyncd.package) has been switched to [anki-sync-server-rs](https://github.com/ankicommunity/anki-sync-server-rs) from the old python version, which was difficult to update, had not been updated in a while, and did not support recent versions of anki.
···3with lib;
45{
6-7 options = {
8-9- fonts = {
10-11- enableGhostscriptFonts = mkOption {
12- type = types.bool;
13- default = false;
14- description = lib.mdDoc ''
15- Whether to add the fonts provided by Ghostscript (such as
16- various URW fonts and the “Base-14” Postscript fonts) to the
17- list of system fonts, making them available to X11
18- applications.
19- '';
20- };
21-22 };
2324 };
2526-27 config = mkIf config.fonts.enableGhostscriptFonts {
28-29- fonts.fonts = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
30-31 };
32-33}
···3with lib;
45{
06 options = {
7+ fonts.enableGhostscriptFonts = mkOption {
8+ type = types.bool;
9+ default = false;
10+ description = lib.mdDoc ''
11+ Whether to add the fonts provided by Ghostscript (such as
12+ various URW fonts and the “Base-14” Postscript fonts) to the
13+ list of system fonts, making them available to X11
14+ applications.
15+ '';
0000016 };
1718 };
19020 config = mkIf config.fonts.enableGhostscriptFonts {
21+ fonts.packages = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
0022 };
023}
···375376 # Munin is hardcoded to use DejaVu Mono and the graphs come out wrong if
377 # it's not available.
378- fonts.fonts = [ pkgs.dejavu_fonts ];
379380 systemd.timers.munin-cron = {
381 description = "batch Munin master programs";
···375376 # Munin is hardcoded to use DejaVu Mono and the graphs come out wrong if
377 # it's not available.
378+ fonts.packages = [ pkgs.dejavu_fonts ];
379380 systemd.timers.munin-cron = {
381 description = "batch Munin master programs";
···103 passthru = {
104 # This is set primarily to help find-tarballs.nix to do its job
105 packages = pkgList.all;
106- # useful for inclusion in the `fonts.fonts` nixos option or for use in devshells
107 fonts = "${texmfroot}/texmf-dist/fonts";
108 };
109
···103 passthru = {
104 # This is set primarily to help find-tarballs.nix to do its job
105 packages = pkgList.all;
106+ # useful for inclusion in the `fonts.packages` nixos option or for use in devshells
107 fonts = "${texmfroot}/texmf-dist/fonts";
108 };
109