nixos/fontconfig-ultimate: Restore presets
The `preset` option was accidentally removed.
commitd0954b549410cc98cbc8fe65610487b19e08bfa4
authorThomas Tuegel <ttuegel@mailbox.org>
dateSat 8 Apr 2017, 07:48 (10 years ago)
parent184e323
nixos/modules/config/fonts/fontconfig-ultimate.nix+10
@@ -63,6 +63,15 @@ in
6363 <literal>none</literal> disables the substitutions.
6464 '';
6565 };
66+
67+ preset = mkOption {
68+ type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"];
69+ default = "ultimate3";
70+ description = ''
71+ FreeType rendering settings preset. Any of the presets may be
72+ customized by setting environment variables.
73+ '';
74+ };
6675 };
6776 };
6877 };
@@ -72,6 +81,7 @@ in
7281 config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
7382
7483 fonts.fontconfig.confPackages = [ confPkg ];
84+ environment.variables."INFINALITY_FT" = cfg.preset;
7585
7686 };
7787