docs: Add a more verbose example on adding the standalone flake (#1323)

This commit is contained in:
traxys 2024-03-26 00:02:10 +01:00 committed by GitHub
parent 2799e830b2
commit ce87283dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ];
}
```