Merge pull request #2812 from toastal/nix-docs-flake-follows-input

docs: add more depth to Flake input
This commit is contained in:
Steven Black
2025-06-03 10:28:05 +02:00
committed by GitHub

View File

@@ -386,7 +386,14 @@ like this:
```nix
{
inputs.hosts.url = "github:StevenBlack/hosts";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=$YOUR-REF";
hosts = {
url = "github:StevenBlack/hosts"; # or a fork/mirror
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, hosts }: {
nixosConfigurations.my-hostname = {
system = "<architecture>";