nixos/fontdir: add group of options for fontDir

Renaming enableFontDir to fontDir.enable
This commit is contained in:
Emilio Perez 2020-09-01 15:35:13 +01:00
parent eda7e23ea4
commit c99bd9bedf
1 changed files with 8 additions and 5 deletions

View File

@ -20,10 +20,9 @@ in
{
options = {
fonts.fontDir = {
fonts = {
enableFontDir = mkOption {
enable = mkOption {
type = types.bool;
default = false;
description = ''
@ -32,11 +31,11 @@ in
'';
};
};
};
};
config = mkIf config.fonts.enableFontDir {
config = mkIf config.fonts.fontDir.enable {
# This is enough to make a symlink because the xserver
# module already links all /share/X11 paths.
@ -48,4 +47,8 @@ in
};
imports = [
(mkRenamedOptionModule [ "fonts" "enableFontDir" ] [ "fonts" "fontDir" "enable" ])
];
}