mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
i3, sway: description and example for font options (#1980)
Adds an example to the root fonts submodule because the documentation doesn't know how to handle `type = with types; either (listOf str) fontOptions;`
This commit is contained in:
parent
9ffb206050
commit
64c5228c08
1 changed files with 16 additions and 0 deletions
|
@ -95,6 +95,14 @@ let
|
|||
fonts = mkOption {
|
||||
type = with types; either (listOf str) fontOptions;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
{
|
||||
names = [ "DejaVu Sans Mono" "FontAwesome5Free" ];
|
||||
style = "Bold Semi-Condensed";
|
||||
size = 11.0;
|
||||
}
|
||||
'';
|
||||
description = "Font configuration for this bar.";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
|
@ -339,6 +347,14 @@ in {
|
|||
fonts = mkOption {
|
||||
type = with types; either (listOf str) fontOptions;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
{
|
||||
names = [ "DejaVu Sans Mono" "FontAwesome5Free" ];
|
||||
style = "Bold Semi-Condensed";
|
||||
size = 11.0;
|
||||
}
|
||||
'';
|
||||
description = "Font configuration for window titles, nagbar...";
|
||||
};
|
||||
|
||||
window = mkOption {
|
||||
|
|
Loading…
Reference in a new issue