1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 06:19:10 +03:00

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

View file

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