For python we have this:
Python.withPackages (p: with p; [
fastapi
])
Do we have anything similar to this for Micro editor?
Where I can declare the micro editor package along with the extensions?
That would be very convenient.
you should make a PR for that, i would use it
I’m a little bit tempted……
I think upstream does not currently support a custom plugin/config directory per Support installing plugins from a local directory · Issue #1990 · micro-editor/micro · GitHub , so it may not be possible without patching the code (i.e. rebuild or at least a PR to nixpkgs of some sort).
That does imply it is more of a home-manager problem than a nixos one.
drupol
November 10, 2026, 4:56am
6
Not necessarily. You could implement this in nixpkgs already.
Why would HM be a requirement?
pbsds
November 10, 2026, 10:10am
7
I almost did add them
master ← pbsds:micro-plugins
opened 01:28AM - 24 Sep 22 UTC
###### Description of changes
Plugins for the micro editor.
I was planning o… n adding a `micro.withPlugins`, but the only way to add the plugins is either to recompile micro with the plugins present, or to wrap it with a custom `$XDG_CONFIG_HOME`, which will shadow any other settings, keybindings and plugins present in the user home directory. These plugins will be made use of in https://github.com/nix-community/home-manager/pull/3224
init microPlugins.acme at 0.0.3
init microPlugins.ag at 1.0.0
init microPlugins.aspell at 1.3.0
init microPlugins.autosave at 0.1.0
init microPlugins.bookmark at 2.2.3
init microPlugins.bounce at 1.1.2
init microPlugins.comment at 1.0.6
init microPlugins.crystal at 1.1.0
init microPlugins.delve at 1.0.3
init microPlugins.detectindent at 1.1.0
init microPlugins.editorconfig at 1.0.0
init microPlugins.emacs_select at 1.0.0
init microPlugins.exec at 1.0.1
init microPlugins.filemanager at 3.5.0
init microPlugins.fish at 0.2.0
init microPlugins.fmt at 3.2.0
init microPlugins.fzf at 1.1.1
init microPlugins.fzfinder at 0.1.0
init microPlugins.go at 2.0.2
init microPlugins.gotham-colors at 1.1.0
init microPlugins.jlabbrev at 1.0.1
init microPlugins.joinLines at 1.1.6
init microPlugins.jump at 0.0.5
init microPlugins.lintertypescript at 1.0.3
init microPlugins.lsp at 0.6.1
init microPlugins.manipulator at 1.4.0
init microPlugins.misspell at 0.2.0
init microPlugins.monokai-dark at 0.1.0
init microPlugins.nordcolors at 1.1.4
init microPlugins.pony at 0.4.0
init microPlugins.prettier at 1.0.0
init microPlugins.quickfix at 2.1.2
init microPlugins.quoter at 1.0.2
init microPlugins.scratch at 1.0.0
init microPlugins.snippets at 0.2.0
init microPlugins.splitterm at 1.0.0
init microPlugins.sunny-day-theme at 0.1.1
init microPlugins.wakatime at 1.0.3
init microPlugins.wc at 1.2.1
init microPlugins.yosyslint at 0.0.3
init microPlugins.zigfmt at 0.1.1
###### Things done
- Built on platform(s)
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- [ ] For non-Linux: Is `sandbox = true` set in `nix.conf`? (See [Nix manual](https://nixos.org/manual/nix/stable/command-ref/conf-file.html))
- [ ] Tested, as applicable:
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://nixos.org/manual/nixpkgs/unstable/#sec-package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://nixos.org/manual/nixpkgs/unstable/#ssec-nixos-tests-linking) to the relevant packages
- [ ] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [22.11 Release Notes (or backporting 22.05 Release notes)](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#generating-2211-release-notes)
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module
- [ ] (Release notes changes) Ran `nixos/doc/manual/md-to-db.sh` to update generated release notes
- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
the problem has been friction upstream in maintaining the plugin repository, with various forks which since has stopped. I am not aware of what the current state is.
The reason i haven’t continued the effort is because i use micro: add bindings, ensurePlugins, and trueColor options by pbsds · Pull Request #3224 · nix-community/home-manager · GitHub in my own config
PRs welcome