Neovim IDE in a NixOS Docker Container
docker run --volumes-from=nix -it \
-v $(pwd):/home \
-w /home \
--name <change-me> \
-p 9005:9005 \
-p 3000:3000 \
-p 3001:3001 \
-p 8080:8080 \
-p 8000:8000 \
-p 8545:8545 \
-p 9545:9545 \
nixos/nix nix-shell /home/.config/nvim.nix
docker run --volumes-from=nix \
-it -v $(pwd):/app \
-w /app --name <change-me> \
nixos/nix nix-shell /home/nvim.nix
- Starts an interactive session in a NixOS Docker container.
- The
nix
data container is used to shared persistent /nix for all Nix containers. - Creates a volume wich mounts the current working directory to the
/app
directory in the container.
- F3 Key Runs Autoformat on selected range of lines.
- Gitgutter shows changes on left gutter of open file. + = new, - = modified.
- ToiletHill.io Additional Notes & Info
- NixOS
- NixOS Vim Wiki
- Neovim
- Setting Up Vim Post
- Docker