Skip to content

Commit

Permalink
nixos/fontconfig-ultimate: Restore presets
Browse files Browse the repository at this point in the history
The `preset` option was accidentally removed.
  • Loading branch information
ttuegel committed Apr 8, 2017
1 parent 184e323 commit d0954b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/modules/config/fonts/fontconfig-ultimate.nix
Expand Up @@ -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.
'';
};
};
};
};
Expand All @@ -72,6 +81,7 @@ in
config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {

fonts.fontconfig.confPackages = [ confPkg ];
environment.variables."INFINALITY_FT" = cfg.preset;

};

Expand Down

0 comments on commit d0954b5

Please sign in to comment.