From eb6e8b17b7beffd3792d898e30b0e9cd80de06ae Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 4 Jan 2025 15:35:55 +0300 Subject: [PATCH] docs: clean up module installation chapters --- docs/manual/installation/modules/home-manager.md | 9 ++++++--- docs/manual/installation/modules/nixos.md | 7 +++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/manual/installation/modules/home-manager.md b/docs/manual/installation/modules/home-manager.md index a2170159..cf56acc3 100644 --- a/docs/manual/installation/modules/home-manager.md +++ b/docs/manual/installation/modules/home-manager.md @@ -44,12 +44,15 @@ Followed by importing the home-manager module somewhere in your configuration. }; outputs = { nixpkgs, home-manager, nvf, ... }: let - system = "x86_64-linux"; in { + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { # ↓ this is your home output in the flake schema, expected by home-manager - "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration + "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; modules = [ nvf.homeManagerModules.default # <- this imports the home-manager module that provides the options - ./home.nix # <- your home entrypoint + ./home.nix # <- your home entrypoint, `programs.nvf.*` may be defined here ]; }; }; diff --git a/docs/manual/installation/modules/nixos.md b/docs/manual/installation/modules/nixos.md index d8be2035..ae5ce939 100644 --- a/docs/manual/installation/modules/nixos.md +++ b/docs/manual/installation/modules/nixos.md @@ -42,13 +42,12 @@ Followed by importing the NixOS module somewhere in your configuration. nvf.url = "github:notashelf/nvf"; }; - outputs = { nixpkgs, nvf, ... }: let - system = "x86_64-linux"; in { + outputs = { nixpkgs, nvf, ... }: { # ↓ this is your host output in the flake schema - nixosConfigurations."yourUsername»" = nixpkgs.lib.nixosSystem { + nixosConfigurations."your-hostname" = nixpkgs.lib.nixosSystem { modules = [ nvf.nixosModules.default # <- this imports the NixOS module that provides the options - ./configuration.nix # <- your host entrypoint + ./configuration.nix # <- your host entrypoint, `programs.nvf.*` may be defined here ]; }; };