Skip to content

Commit

Permalink
docs: Add a more verbose example on adding the standalone flake (nix-…
Browse files Browse the repository at this point in the history
  • Loading branch information
traxys authored Mar 25, 2024
1 parent 2799e83 commit ce87283
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/user-guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,14 @@ There are also some helper functions in `<nixvim>.lib.${system}` like:
The nixvim derivation can then be used like any other package!

For more information you can look at the [nixvim standalone flake template](https://github.com/nix-community/nixvim/blob/main/templates/simple/flake.nix).

Here is an example on how to integrate into a NixOS or Home-manager configuration when using flake parts (assuming your standalone flake's input is `nixvim-config`):
```nix
{ inputs, system, ... }:
{
# NixOS
environment.systemPackages = [ inputs.nixvim-config.packages.${system}.default ];
# home-manager
home.packages = [ inputs.nixvim-config.packages.${system}.default ];
}
```

0 comments on commit ce87283

Please sign in to comment.