Modules: Add fonts module
This commit is contained in:
69
system/modules/fonts/options.nix
Normal file
69
system/modules/fonts/options.nix
Normal file
@ -0,0 +1,69 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}: {
|
||||
enable = lib.mkEnableOption "Enable fonts configuration";
|
||||
|
||||
defaultSerifFont = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Select default serif font";
|
||||
example = ''
|
||||
"Noto Serif CJK SC"
|
||||
'';
|
||||
default = "Noto Serif CJK SC";
|
||||
};
|
||||
|
||||
defaultSansSerifFont = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Select default sans-serif font";
|
||||
example = ''
|
||||
"Noto Sans CJK SC"
|
||||
'';
|
||||
default = "Noto Sans CJK SC";
|
||||
};
|
||||
|
||||
defaultMonoFont = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Select default monospace font";
|
||||
example = ''
|
||||
"MonoLisa Alt Script"
|
||||
'';
|
||||
default = "MonoLisa Alt Script";
|
||||
};
|
||||
|
||||
fallbackSerifFonts = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
description = "Select fallback serif fonts";
|
||||
example = ''
|
||||
[
|
||||
"Noto Serif CJK SC"
|
||||
]
|
||||
'';
|
||||
default = [];
|
||||
};
|
||||
|
||||
fallbackSansSerifFonts = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
description = "Select fallback sans-serif fonts";
|
||||
example = ''
|
||||
[
|
||||
"Noto Sans CJK SC"
|
||||
]
|
||||
'';
|
||||
default = [];
|
||||
};
|
||||
|
||||
fallbackMonoFonts = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
description = "Select fallback monospace fonts";
|
||||
example = ''
|
||||
[
|
||||
"JetBrainsMono Nerd Font Mono"
|
||||
]
|
||||
'';
|
||||
default = [
|
||||
"JetBrainsMono Nerd Font Mono"
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user