readme: use pkgs.system in standalone example

This commit is contained in:
Matt Sturgeon 2024-06-03 15:55:20 +01:00
parent d3f12340e1
commit 80ed86649b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

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