From d0954b549410cc98cbc8fe65610487b19e08bfa4 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sat, 8 Apr 2017 07:48:09 -0500 Subject: [PATCH] nixos/fontconfig-ultimate: Restore presets The `preset` option was accidentally removed. --- nixos/modules/config/fonts/fontconfig-ultimate.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/config/fonts/fontconfig-ultimate.nix b/nixos/modules/config/fonts/fontconfig-ultimate.nix index e412146a039..1bf9fdb1984 100644 --- a/nixos/modules/config/fonts/fontconfig-ultimate.nix +++ b/nixos/modules/config/fonts/fontconfig-ultimate.nix @@ -63,6 +63,15 @@ in none disables the substitutions. ''; }; + + preset = mkOption { + type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"]; + default = "ultimate3"; + description = '' + FreeType rendering settings preset. Any of the presets may be + customized by setting environment variables. + ''; + }; }; }; }; @@ -72,6 +81,7 @@ in config = mkIf (config.fonts.fontconfig.enable && cfg.enable) { fonts.fontconfig.confPackages = [ confPkg ]; + environment.variables."INFINALITY_FT" = cfg.preset; };