From d2f492003b4fa5211a57a9adfb1fd9baf73f10e4 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 8 Oct 2023 11:36:15 +0200 Subject: fix(flake/packages): Apply eta-reduction --- flake/packages/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'flake/packages') diff --git a/flake/packages/default.nix b/flake/packages/default.nix index a78b45c5..7d91f2bf 100644 --- a/flake/packages/default.nix +++ b/flake/packages/default.nix @@ -30,15 +30,14 @@ config = value.config.home-manager.users.soispha; }; - merge_attrs = list_of_attrs: merge list_of_attrs; resolve_imports = attrs: - merge_attrs (builtins.map (v: import v build_args) + merge (builtins.map (v: import v build_args) attrs.imports); resolve_imports' = attrs: if builtins.any (n: n == "imports") (builtins.attrNames attrs) then - resolve_imports' (merge_attrs [ + resolve_imports' (merge [ (resolve_imports attrs) (builtins.removeAttrs attrs -- cgit 1.4.1