From 71b0aaae74d969371127f0e4711ec299df3868b8 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 7 Nov 2024 01:52:19 +0200 Subject: [PATCH] docs: fix example in README.md - fix typos - fix attr path - don't use ?ref - specify system in nixos config --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3888d8c..0fd9395 100644 --- a/README.md +++ b/README.md @@ -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; + } ]; }; - } + }; } ```