nix-dev-home
nix-dev-home copied to clipboard
Add a flake app for running our neovim config
nix run github:juspay/nix-dev-home#neovim
should run neovim with the config in this repo, without depending on any of user's dotfiles or local $HOME cache.
cf. https://old.reddit.com/r/NixOS/comments/1aulb75/easy_neovim_with_configuration_and_runnable_with/
Mic92 has a runnable nvim config: https://github.com/Mic92/dotfiles?tab=readme-ov-file#use-my-nvim-configuration-as-a-standalone-without-installing-dotfiles
It's not generic enough.
https://github.com/Mic92/dotfiles/blob/b2ff14454465c10d00c4239eea0785583ddf9a35/home-manager/modules/neovim/nvim-standalone.nix#L3-L30
We want something that works with our nixvim configuration.
https://github.com/niksingh710/nvix?tab=readme-ov-file#quick-run
@srid
I have fixed this in these 2 commits.
Check them out, and if everything seems fine, then I will create an MR.
nix run github:niksingh710/nix-dev-home#neovim
- Switched nixvim config from
home -> standalone
- Moved the
neovim.nix
config topkgs
dir. Representing package set. - Added the same package in
home/packages.nix
to make sure that when home is built, then package is there.
@niksingh710 I think that approach is generally in the right direction. But can we continue to use the home-manager module anyway? Your change basically removes this config:
https://github.com/nix-community/nixvim/blob/11c133e89e4090c43445a2c3b5af2322831d7219/wrappers/hm.nix#L43-L58
Anyway, open a PR - we can continue the discussion there. I'd also like to consider testing the "disabling" neovim feature when initializing this repo as template using https://omnix.page/om/init.html