From c0d40cb75bfb198ccd41d271524454af849d5f5a Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 8 Nov 2024 12:27:42 +0300 Subject: [PATCH] docs/installation: fix logical errors in standalone chapters --- .../installation/standalone/home-manager.md | 17 ++++++++--------- docs/manual/installation/standalone/nixos.md | 12 +++++------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/docs/manual/installation/standalone/home-manager.md b/docs/manual/installation/standalone/home-manager.md index 1f5d55c..0c1dc02 100644 --- a/docs/manual/installation/standalone/home-manager.md +++ b/docs/manual/installation/standalone/home-manager.md @@ -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 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 { @@ -30,23 +30,22 @@ the default theme enabled. You may use other options inside `config.vim` in }; customNeovim = nvf.lib.neovimConfiguration { - modules = [configModule]; inherit pkgs; + modules = [configModule]; }; 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; - # this is an example home-manager configuration - # using the built neovim package + # Example Home-Manager configuration using the configured Neovim package homeConfigurations = { "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration { # ... modules = [ - ./home.nix - - # this will make wrapped neovim available in your system packages - {environment.systemPackages = [customNeovim.neovim];} + # This will make Neovim available to users using the Home-Manager + # configuration. To make the package available to all users, prefer + # environment.systemPackages in your NixOS configuration. + {home.packages = [customNeovim.neovim];} ]; # ... }; diff --git a/docs/manual/installation/standalone/nixos.md b/docs/manual/installation/standalone/nixos.md index 33235ac..a78c8de 100644 --- a/docs/manual/installation/standalone/nixos.md +++ b/docs/manual/installation/standalone/nixos.md @@ -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 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 { @@ -30,21 +30,19 @@ the default theme enabled. You may use other options inside `config.vim` in }; customNeovim = nvf.lib.neovimConfiguration { - modules = [configModule]; inherit pkgs; + modules = [configModule]; }; 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; - # this is an example nixosConfiguration using the built neovim package + # Example nixosConfiguration using the configured Neovim package nixosConfigurations = { yourHostName = nixpkgs.lib.nixosSystem { # ... 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];} ]; # ...