Nvim configuration
- Nix 98.4%
- Vim Snippet 1.6%
| config | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
Nixvim template
This template gives you a good starting point for configuring nixvim standalone.
Configuring
To start configuring, just add or modify the nix files in ./config.
If you add a new configuration file, remember to add it to the
config/default.nix file
Testing your new configuration
To test your configuration simply run the following command
nix run .
Installation
Option 1: Using nix run
nix run --extra-experimental-features 'nix-command flakes' git+https://0xee.cc/smgt/nix-nvim
Option 2: Adding as a Flake Input:
In your system's Nix configuration (e.g., ~/.config/nixpkgs/flake.nix or ~/.config/nixpkgs/home.nix), add the following:
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Or your preferred channel
smgtvim.url = "git+https://0xee.cc/smgt/nix-nvim";
};
outputs = { self, nixpkgs, smgtvim }: {
# ... your other configuration ...
# Add to your system packages or devShell if you want to make it available system-wide
packages = with nixpkgs; [
smgtvim.packages.${system}.default
];
# Or, use in a devShell:
devShells.default = nixpkgs.mkShell {
nativeBuildInputs = [ smgtvim.packages.${system}.default ];
};
};
# HTTPS
nix profile install git+https://0xee.cc/smgt/nix-nvim
# SSH
nix profile install git+ssh://git@0xee.cc/smgt/nix-nvim.git\?ref=main