mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 00:26:45 +00:00
docs/installation: fix logical errors in standalone chapters
This commit is contained in:
parent
f738ad9d1a
commit
9b111d1fe4
2 changed files with 13 additions and 16 deletions
|
@ -6,7 +6,7 @@ your system packages to make it available across your system.
|
||||||
|
|
||||||
The following is an example installation of `nvf` as a standalone package with
|
The following is an example installation of `nvf` as a standalone package with
|
||||||
the default theme enabled. You may use other options inside `config.vim` in
|
the default theme enabled. You may use other options inside `config.vim` in
|
||||||
`configModule`, but this example will not cover that.
|
`configModule`, but this example will not cover that extensively.
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
|
@ -30,23 +30,22 @@ the default theme enabled. You may use other options inside `config.vim` in
|
||||||
};
|
};
|
||||||
|
|
||||||
customNeovim = nvf.lib.neovimConfiguration {
|
customNeovim = nvf.lib.neovimConfiguration {
|
||||||
modules = [configModule];
|
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
modules = [configModule];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# this will make the package available as a flake input
|
# This will make the package available as a flake output under 'packages'
|
||||||
packages.${system}.my-neovim = customNeovim.neovim;
|
packages.${system}.my-neovim = customNeovim.neovim;
|
||||||
|
|
||||||
# this is an example home-manager configuration
|
# Example Home-Manager configuration using the configured Neovim package
|
||||||
# using the built neovim package
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"your-username@your-hostname" = home-manager.lib.homeManagerConfiguration {
|
"your-username@your-hostname" = home-manager.lib.homeManagerConfiguration {
|
||||||
# ...
|
# ...
|
||||||
modules = [
|
modules = [
|
||||||
./home.nix
|
# This will make Neovim available to users using the Home-Manager
|
||||||
|
# configuration. To make the package available to all users, prefer
|
||||||
# this will make wrapped neovim available in your system packages
|
# environment.systemPackages in your NixOS configuration.
|
||||||
{environment.systemPackages = [customNeovim.neovim];}
|
{home.packages = [customNeovim.neovim];}
|
||||||
];
|
];
|
||||||
# ...
|
# ...
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,7 @@ your system packages to make it available across your system.
|
||||||
|
|
||||||
The following is an example installation of `nvf` as a standalone package with
|
The following is an example installation of `nvf` as a standalone package with
|
||||||
the default theme enabled. You may use other options inside `config.vim` in
|
the default theme enabled. You may use other options inside `config.vim` in
|
||||||
`configModule`, but this example will not cover that.
|
`configModule`, but this example will not cover that extensively.
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
|
@ -30,21 +30,19 @@ the default theme enabled. You may use other options inside `config.vim` in
|
||||||
};
|
};
|
||||||
|
|
||||||
customNeovim = nvf.lib.neovimConfiguration {
|
customNeovim = nvf.lib.neovimConfiguration {
|
||||||
modules = [configModule];
|
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
modules = [configModule];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# this will make the package available as a flake input
|
# This will make the package available as a flake output under 'packages'
|
||||||
packages.${system}.my-neovim = customNeovim.neovim;
|
packages.${system}.my-neovim = customNeovim.neovim;
|
||||||
|
|
||||||
# this is an example nixosConfiguration using the built neovim package
|
# Example nixosConfiguration using the configured Neovim package
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
yourHostName = nixpkgs.lib.nixosSystem {
|
yourHostName = nixpkgs.lib.nixosSystem {
|
||||||
# ...
|
# ...
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix # or whatever your configuration is
|
# This will make wrapped neovim available in your system packages
|
||||||
|
|
||||||
# this will make wrapped neovim available in your system packages
|
|
||||||
{environment.systemPackages = [customNeovim.neovim];}
|
{environment.systemPackages = [customNeovim.neovim];}
|
||||||
];
|
];
|
||||||
# ...
|
# ...
|
||||||
|
|
Loading…
Reference in a new issue