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:
parent
eda7e23ea4
commit
c99bd9bedf
1 changed files with 8 additions and 5 deletions
|
@ -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" ])
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue