From ce87283dd6f6660b199af174e60f4a0cec0e2c5b Mon Sep 17 00:00:00 2001 From: traxys Date: Tue, 26 Mar 2024 00:02:10 +0100 Subject: [PATCH] docs: Add a more verbose example on adding the standalone flake (#1323) --- docs/user-guide/install.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/user-guide/install.md b/docs/user-guide/install.md index ecf82f62..27df56f4 100644 --- a/docs/user-guide/install.md +++ b/docs/user-guide/install.md @@ -74,3 +74,14 @@ There are also some helper functions in `.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 ]; +} +```