diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-04-08 07:48:09 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-04-08 08:22:01 -0500 |
commit | d0954b549410cc98cbc8fe65610487b19e08bfa4 (patch) | |
tree | fb65fa0ce4ff0173ddc3ad9af9b7c50df378e1be /nixos | |
parent | 184e3238c7b65f18187d14a0388bacdee3829487 (diff) | |
download | nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar.gz nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar.bz2 nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar.lz nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar.xz nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.tar.zst nixlib-d0954b549410cc98cbc8fe65610487b19e08bfa4.zip |
nixos/fontconfig-ultimate: Restore presets
The `preset` option was accidentally removed.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/fonts/fontconfig-ultimate.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/config/fonts/fontconfig-ultimate.nix b/nixos/modules/config/fonts/fontconfig-ultimate.nix index e412146a0394..1bf9fdb19845 100644 --- a/nixos/modules/config/fonts/fontconfig-ultimate.nix +++ b/nixos/modules/config/fonts/fontconfig-ultimate.nix @@ -63,6 +63,15 @@ in <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. + ''; + }; }; }; }; @@ -72,6 +81,7 @@ in config = mkIf (config.fonts.fontconfig.enable && cfg.enable) { fonts.fontconfig.confPackages = [ confPkg ]; + environment.variables."INFINALITY_FT" = cfg.preset; }; |