summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/fonts
diff options
context:
space:
mode:
authorEric Sagnes <eric.sagnes@gmail.com>2016-11-16 22:35:46 +0900
committerEric Sagnes <eric.sagnes@gmail.com>2016-11-16 22:35:46 +0900
commit61efe92e689d0feb1033ef049de5516711cfc881 (patch)
tree1d6b99414dacdf85da514573c5d8ac7264c9aac9 /nixos/modules/config/fonts
parentfcb6a18f374387498e7f892ade444527ae93e5ec (diff)
fontconfig module: use enum
Diffstat (limited to 'nixos/modules/config/fonts')
-rw-r--r--nixos/modules/config/fonts/fontconfig.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/nixos/modules/config/fonts/fontconfig.nix b/nixos/modules/config/fonts/fontconfig.nix
index 770c3a03f9d8..52ad1e714fb9 100644
--- a/nixos/modules/config/fonts/fontconfig.nix
+++ b/nixos/modules/config/fonts/fontconfig.nix
@@ -301,9 +301,7 @@ in
};
style = mkOption {
- type = types.str // {
- check = flip elem ["none" "slight" "medium" "full"];
- };
+ type = types.enum ["none" "slight" "medium" "full"];
default = "full";
description = ''
TrueType hinting style, one of <literal>none</literal>,
@@ -329,9 +327,7 @@ in
default = "rgb";
type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"];
description = ''
- Subpixel order, one of <literal>none</literal>,
- <literal>rgb</literal>, <literal>bgr</literal>,
- <literal>vrgb</literal>, or <literal>vbgr</literal>.
+ Subpixel order.
'';
};
@@ -339,9 +335,7 @@ in
default = "default";
type = types.enum ["none" "default" "light" "legacy"];
description = ''
- FreeType LCD filter, one of <literal>none</literal>,
- <literal>default</literal>, <literal>light</literal>, or
- <literal>legacy</literal>.
+ FreeType LCD filter.
'';
};