mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
aerc: change stylesets option to reflect the structure aerc expects
Instead of placing all 'stylesets' attribute set values into the 'global' section this places them in the specified section.
This commit is contained in:
@@ -104,10 +104,10 @@ in
|
||||
};
|
||||
|
||||
stylesets = mkOption {
|
||||
type = with types; attrsOf (either confSection lines);
|
||||
type = with types; attrsOf (sectionsOrLines);
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{ default = { ui = { "tab.selected.reverse" = toggle; }; }; };
|
||||
{ default = { ui = { "tab.selected.reverse" = "toggle"; }; }; };
|
||||
'';
|
||||
description = ''
|
||||
Stylesets added to {file}`$HOME/.config/aerc/stylesets/`.
|
||||
@@ -166,7 +166,7 @@ in
|
||||
mkStyleset = attrsets.mapAttrs' (
|
||||
k: v:
|
||||
let
|
||||
value = if lib.isString v then v else sectionsToINI { global = v; };
|
||||
value = if lib.isString v then v else sectionsToINI v;
|
||||
in
|
||||
{
|
||||
name = "${configDir}/stylesets/${k}";
|
||||
|
||||
Reference in New Issue
Block a user