1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02: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:
Antoine Martin 2021-05-04 16:31:37 +02:00 committed by GitHub
parent 9ffb206050
commit 64c5228c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {