treewide: apply linter suggestions

This commit is contained in:
Gaetan Lepage 2025-12-26 15:06:14 +01:00 committed by Austin Horstman
parent aca6fcdaff
commit 1d333fc92e
39 changed files with 54 additions and 59 deletions

View file

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

View file

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

View file

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