1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

meli: move freeformat settings to example (#7259)

these hardcoded freeformat settings dont add anything over the default,
worse they generate empty sections which can then clash with user included config (my usecase).
It's best to move those to example.
This commit is contained in:
Matthieu Coudron 2025-06-13 15:25:19 +02:00 committed by GitHub
parent f111393987
commit 79dfd9aa29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 61 deletions

View file

@ -84,65 +84,36 @@ in
settings = mkOption { settings = mkOption {
type = types.submodule { type = types.submodule {
freeformType = (pkgs.formats.toml { }).type; freeformType = tomlFormat.type;
options = { };
shortcuts = mkOption { example = lib.literalExample ''
type = types.submodule { {
options = { shortcuts = {
general = mkOption { contact-list = {
type = types.attrsOf types.str;
default = { };
description = "general shortcut configuration";
example = {
scroll_up = "e";
scroll_down = "n";
next_page = "C-d";
};
};
composing = mkOption {
type = types.attrsOf types.str;
default = { };
description = "composing shortcut configuration";
example = {
edit = "m";
scroll_up = "e";
scroll_down = "n";
};
};
contact-list = mkOption {
type = types.attrsOf types.str;
default = { };
description = "contact-list shortcut configuration";
example = {
create_contact = "c"; create_contact = "c";
edit_contact = "m"; edit_contact = "m";
}; };
}; general = {
listing = mkOption { edit = "m";
type = types.attrsOf types.str; scroll_up = "e";
default = { }; scroll_down = "n";
description = "general shortcut configuration"; };
example = { composing = {
new_mail = "t"; edit = "m";
set_seen = "s"; scroll_up = "e";
}; scroll_down = "n";
}; };
pager = mkOption { listing = {
type = types.attrsOf types.str; new_mail = "t";
default = { }; set_seen = "s";
description = "general shortcut configuration"; };
example = { pager = {
scroll_up = "e"; scroll_up = "e";
scroll_down = "n"; scroll_down = "n";
};
};
};
};
default = { };
description = "Shortcut Settings";
};
}; };
};
}
}'';
default = { }; default = { };
description = "Meli Configuration"; description = "Meli Configuration";
}; };

View file

@ -27,14 +27,6 @@ PRDR = true
danger_accept_invalid_certs = false danger_accept_invalid_certs = false
type = "tls" type = "tls"
[shortcuts.composing]
[shortcuts.contact-list]
[shortcuts.general] [shortcuts.general]
scroll_down = "j" scroll_down = "j"
scroll_up = "k" scroll_up = "k"
[shortcuts.listing]
[shortcuts.pager]