Skip to content

Commit

Permalink
Merge pull request #113 from Shyrogan/nixvimModule
Browse files Browse the repository at this point in the history
Allow Neve to be used as a Nixvim module
  • Loading branch information
redyf authored Oct 27, 2024
2 parents 2b95845 + cd65df8 commit 283507a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,33 @@ However if you'd like to give it a try before installing, <b>nix run github:redy
<summary><b>INSTALLATION GUIDE</b></summary>
I'm assuming you already use nix flakes but in case you don't, please check this tutorial to enable them:

[Flakes](https://nixos.wiki/wiki/Flakes)
1. Go to flake.nix and add Neve.url = "github:redyf/Neve" to your inputs.

After enabling it, follow the steps below:
2. Run nix flake update, then Neve should be available for installation.

### Option 1: Using [Flakes](https://nixos.wiki/wiki/Flakes) to install Neve as a Nixvim module.

1- Go to flake.nix and add Neve.url = "github:redyf/Neve" to your inputs.
3. Install it by adding the following code to Nixvim configuration:

2- Run nix flake update, then Neve should be available for installation.
```nix
programs.nixvim = {
enable = true;
imports = [ inputs.Neve.nixvimModule ];
# Then configure Nixvim as usual, you might have to lib.mkForce some of the settings
colorschemes.catppuccin.enable = lib.mkForce false;
colorschemes.nord.enable = true;
};
```

4. Rebuild your system and you should be done :

### Option 2: Using [Flakes](https://nixos.wiki/wiki/Flakes) to install Neve as a package

After enabling it, follow the steps below:

3- Install it by adding `inputs.Neve.packages.${pkgs.system}.default` to your environment.systemPackages or home.packages if you're using home-manager.
3. Install it by adding `inputs.Neve.packages.${pkgs.system}.default` to your environment.systemPackages or home.packages if you're using home-manager.

4- Rebuild your system and you should be done :
4. Rebuild your system and you should be done :

</details>

Expand Down
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
let
config = import ./config; # import the module directly
in
{
nixvimModule = config;
}
//
flake-utils.lib.eachDefaultSystem (
system:
let
Expand Down

0 comments on commit 283507a

Please sign in to comment.