treewide: apply linter suggestions
This commit is contained in:
parent
aca6fcdaff
commit
1d333fc92e
39 changed files with 54 additions and 59 deletions
|
|
@ -12,7 +12,7 @@ let
|
|||
modules = [ ./page.nix ];
|
||||
};
|
||||
|
||||
pages = builtins.removeAttrs config (builtins.attrNames options);
|
||||
pages = removeAttrs config (builtins.attrNames options);
|
||||
in
|
||||
{
|
||||
freeformType = lib.types.attrsOf pageType;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ let
|
|||
modules = [ ./category.nix ];
|
||||
};
|
||||
|
||||
categories = builtins.removeAttrs config (builtins.attrNames options);
|
||||
categories = removeAttrs config (builtins.attrNames options);
|
||||
in
|
||||
{
|
||||
freeformType = lib.types.attrsOf categoryType;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ let
|
|||
nextPrefix = if showInMenu then loc else prefix;
|
||||
nextIndent = if showInMenu && nested then indent + " " else indent;
|
||||
|
||||
children = builtins.removeAttrs page optionNames;
|
||||
children = removeAttrs page optionNames;
|
||||
submenu = lib.pipe children [
|
||||
builtins.attrValues
|
||||
(map (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue