Skip to content

Commit

Permalink
docs: fix example in README.md
Browse files Browse the repository at this point in the history
- fix typos
- fix attr path
- don't use ?ref
- specify system in nixos config
  • Loading branch information
Kranzes authored Nov 6, 2024
1 parent e222ca0 commit 71b0aaa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ Yes! for example with a config like this:

```nix
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }: {
nixosConfigurations.my-system = nixpkgs.nixosSystem {
system = "aarch64-linux";
nixosConfigurations.my-system = nixpkgs.lib.nixosSystem {
modules = [
"${nixpkgs}/nixos/maintainers/scripts/ec2/amazon-image.nix"
{ services.ngninx.enable = true; }
{
nixpkgs.hostPlatform = "x86_64-linux";
services.nginx.enable = true;
}
];
};
}
};
}
```

Expand Down

0 comments on commit 71b0aaa

Please sign in to comment.