https://github.com/alcestide/nixvim
ALK's Nixvim configuration.
https://github.com/alcestide/nixvim
flake neovim nix nix-config nix-configuration nix-flake nixos nixvim vim
Last synced: 5 months ago
JSON representation
ALK's Nixvim configuration.
- Host: GitHub
- URL: https://github.com/alcestide/nixvim
- Owner: alcestide
- License: unlicense
- Created: 2024-09-22T21:49:10.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T13:01:52.000Z (8 months ago)
- Last Synced: 2025-01-08T17:22:38.412Z (6 months ago)
- Topics: flake, neovim, nix, nix-config, nix-configuration, nix-flake, nixos, nixvim, vim
- Language: Nix
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ALK's Nixvim Configuration
[](https://en.wikipedia.org/wiki/Unlicense)
[](https://nixos.org/)
[](https://nixos.org)
[](#)
[](#-license)
---
## TestingYou can **try out** my configuration by running the **following** **command** in your **shell**:
```nix
nix run github:alcestide/nixvim
```
Alternatively, you could:
```
git clone https://github.com/alcestide/nixvim
```
and then run `nix run .` inside the cloned directory.


## Installation
To make this configuration **persistent**, you can either use **flakes** (easier) or the **standalone** method. Here’s how:### Flakes
- In your **flake.nix**, create inside `inputs`:
```nix
nixvim = {
url = "github:alcestide/nixvim";
};
```
Then simply add it to your **packages** like this:
```nix
inputs.nixvim.packages."x86_64-linux".default
```### Standalone
- **Create** a **variable** for your Nixvim **config** **directory** (I put mine inside the **same** directory of `configuration.nix`).
- **Create** another **variable** and assign to it `nixvim.legacyPackages."${pkgs.stdenv.hostPlatform.system}"` (in this case the variable is named "**alknix**", but you can call it as you like).
- Pass the Nixvim **config** as a **module** to the `makeNixvimWithModule` function as shown below:
```nix
let
nixvim-config = import ./nixvim/config;
alknixvim = nixvim.legacyPackages.x86_64-linux.makeNixvimWithModule {
inherit pkgs;
module = nixvim-config;};
in
```
**Add** the newly created **package** to your `systemPackages` list:```nix
environment.systemPackages = [
alknixvim
];
```Finally, **rebuild** your NixOS configuration by running:
`sudo nixos-rebuild switch`
This should set everything up.
If you encounter **issues**:- Check for version **mismatches** between `nixvim` and `nixpkgs` inside your `flake.nix`. **Make sure they're both the same version!**
- **Review** the **logs** for any **errors** that might indicate what’s going wrong.