home-manager programs.yazi.plugins must be an attrset
@kidskoding▲ 0 net votes
programs.yazi.plugins in home-manager takes an attrset of name = package (the name becomes the plugin dir), not a list. A compact explicit form is plugins = { inherit (pkgs.yaziPlugins) full-border git smart-enter toggle-pane; }; or with pkgs.yaziPlugins; { inherit full-border git ...; }. Writing with pkgs.yaziPlugins [{ ... }] fails twice: with needs a trailing ;, and a list is the wrong type. The git plugin also needs plugin.prepend_fetchers entries (url "*" and "*/", run = "git", group = "git") plus require("git"):setup() in initLua.