Skip to content

Commit

Permalink
readme: use pkgs.system in standalone example
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jun 3, 2024
1 parent d3f1234 commit 80ed866
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ and standalone through the `makeNixvim` function. To use the modules, just impor
`nixvim.nixosModules.nixvim` modules, depending on which system
you're using.

For more detail, see the [Usage](https://nix-community.github.io/nixvim/user-guide/install.html#usage) section of our documentation.

If you want to use it standalone, you can use the `makeNixvim` function:

```nix
{ pkgs, nixvim, ... }: {
environment.systemModules = [
(nixvim.legacyPackages."${system}".makeNixvim {
(nixvim.legacyPackages."${pkgs.system}".makeNixvim {
colorschemes.gruvbox.enable = true;
})
];
Expand Down

0 comments on commit 80ed866

Please sign in to comment.