diff options
author | Soispha <soispha@vhack.eu> | 2023-08-27 20:53:58 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-27 20:53:58 +0200 |
commit | be1f02c1a633f18696d15827201d3040c05ac1f0 (patch) | |
tree | 8164346fdfafb50a9444aa1a6cf168d3c3867421 | |
parent | Feat(hm/conf/nvim/plugins/neorg): Init (diff) | |
download | nixos-config-be1f02c1a633f18696d15827201d3040c05ac1f0.tar.gz nixos-config-be1f02c1a633f18696d15827201d3040c05ac1f0.zip |
Perf(flake/packages/nvim): Use list merge feature of the merge function
Diffstat (limited to '')
-rw-r--r-- | flake/packages/default.nix | 2 | ||||
-rw-r--r-- | flake/packages/merge.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/flake/packages/default.nix b/flake/packages/default.nix index 27d52207..80159a80 100644 --- a/flake/packages/default.nix +++ b/flake/packages/default.nix @@ -29,7 +29,7 @@ config = value.config.home-manager.users.soispha; }; - merge_attrs = list_of_attrs: builtins.foldl' (x: y: merge [x y]) {} list_of_attrs; + merge_attrs = list_of_attrs: merge list_of_attrs; resolve_imports = attrs: merge_attrs (builtins.map (v: import v build_args) attrs.imports); diff --git a/flake/packages/merge.nix b/flake/packages/merge.nix index 8c8ed134..43161ba0 100644 --- a/flake/packages/merge.nix +++ b/flake/packages/merge.nix @@ -62,7 +62,7 @@ ## Prepared tests tests = { - tests = []; # Uncomment to actually run the tests + tests = []; # Comment to actually run the tests test_strings = { expr = merge [a b c]; expected = {a = "This is some\nexample text\n(which is nice)";}; |