Skip to content

Commit eb6e8b1

Browse files
committed
docs: clean up module installation chapters
1 parent fcc6aa4 commit eb6e8b1

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/manual/installation/modules/home-manager.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ Followed by importing the home-manager module somewhere in your configuration.
4444
};
4545
4646
outputs = { nixpkgs, home-manager, nvf, ... }: let
47-
system = "x86_64-linux"; in {
47+
system = "x86_64-linux";
48+
pkgs = nixpkgs.legacyPackages.${system};
49+
in {
4850
# ↓ this is your home output in the flake schema, expected by home-manager
49-
"your-username@your-hostname" = home-manager.lib.homeManagerConfiguration
51+
"your-username@your-hostname" = home-manager.lib.homeManagerConfiguration {
52+
inherit pkgs;
5053
modules = [
5154
nvf.homeManagerModules.default # <- this imports the home-manager module that provides the options
52-
./home.nix # <- your home entrypoint
55+
./home.nix # <- your home entrypoint, `programs.nvf.*` may be defined here
5356
];
5457
};
5558
};

docs/manual/installation/modules/nixos.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ Followed by importing the NixOS module somewhere in your configuration.
4242
nvf.url = "github:notashelf/nvf";
4343
};
4444
45-
outputs = { nixpkgs, nvf, ... }: let
46-
system = "x86_64-linux"; in {
45+
outputs = { nixpkgs, nvf, ... }: {
4746
# ↓ this is your host output in the flake schema
48-
nixosConfigurations."yourUsername»" = nixpkgs.lib.nixosSystem {
47+
nixosConfigurations."your-hostname" = nixpkgs.lib.nixosSystem {
4948
modules = [
5049
nvf.nixosModules.default # <- this imports the NixOS module that provides the options
51-
./configuration.nix # <- your host entrypoint
50+
./configuration.nix # <- your host entrypoint, `programs.nvf.*` may be defined here
5251
];
5352
};
5453
};

0 commit comments

Comments
 (0)