nixos/fontconfig-ultimate: Restore presets

The `preset` option was accidentally removed.

Changed files
+10
nixos
modules
+10
nixos/modules/config/fonts/fontconfig-ultimate.nix
···
<literal>none</literal> disables the substitutions.
'';
};
};
};
};
···
config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
fonts.fontconfig.confPackages = [ confPkg ];
};
···
<literal>none</literal> 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.
+
'';
+
};
};
};
};
···
config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
fonts.fontconfig.confPackages = [ confPkg ];
+
environment.variables."INFINALITY_FT" = cfg.preset;
};