mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 12:54:30 +02:00
docs: Add a more verbose example on adding the standalone flake (#1323)
This commit is contained in:
parent
2799e830b2
commit
ce87283dd6
1 changed files with 11 additions and 0 deletions
|
@ -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!
|
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).
|
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 ];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue