Skip to content

Commit

Permalink
init: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jun 28, 2024
1 parent 56f7459 commit b088329
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# nvim.nix

## Usage

```nix
# flake.nix
inputs = {
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixvim = {
url = "github:nix-community/nixvim/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim = {
url = "github:NuschtOS/nvim.nix";
inputs.home-manager.follows = "home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
```

### NixOS

```nix
# configuration.nix
{
imports = [ inputs.nvim.nixosModules.nvim ];
programs.nixvim.enable = true;
}
```

### HomeManager

```nix
# home.nix
{
imports = [ inputs.nvim.homeManagerModules.nvim ];
programs.nixvim.enable = true;
}
```

### Package

```nix
{
environment.systemPackages = [ inputs.nvim.packages.x86_64-linux.nixvim ];
}
```

0 comments on commit b088329

Please sign in to comment.