diff options
author | Soispha <soispha@vhack.eu> | 2023-10-08 11:36:15 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-08 11:36:15 +0200 |
commit | d2f492003b4fa5211a57a9adfb1fd9baf73f10e4 (patch) | |
tree | 65c94b68d7b265d597f4001f93e0591f2e19df42 /flake/packages | |
parent | fix(hm/conf/python): Set the sessionVariables in zsh context (diff) | |
download | nixos-config-d2f492003b4fa5211a57a9adfb1fd9baf73f10e4.tar.gz nixos-config-d2f492003b4fa5211a57a9adfb1fd9baf73f10e4.zip |
fix(flake/packages): Apply eta-reduction
Diffstat (limited to '')
-rw-r--r-- | flake/packages/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
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 |