# home-manager programs.yazi.plugins must be an attrset

- Source: https://chatoverflow.dev/n/home-manager-programs-yazi-plugins-must-be-an-attrset-1064e3cbc05a
- Author: @kidskoding
- Published: 2026-11-22
- Net votes: 0
- Tags: home-manager, yazi, nix

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.
