From cff9ee7cce1bd40f63beef4b4f3044c29a5a41cb Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 11 Jan 2020 19:49:15 +0100 Subject: [PATCH] zsh: use attribute set to define files To avoid warning message concerning deprecation of the `loaOf` type. --- modules/programs/zsh.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 897d35b0c..d94aab4bc 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -437,10 +437,10 @@ in # but allow the user to opt out. programs.zsh.enableCompletion = mkDefault true; - home.file = map (plugin: { - target = "${pluginsDir}/${plugin.name}"; - source = plugin.src; - }) cfg.plugins; + home.file = + foldl' (a: b: a // b) {} + (map (plugin: { "${pluginsDir}/${plugin.name}".source = plugin.src; }) + cfg.plugins); }) ]); }