From 40ab79ca742b0c196e7ae96442b7827e5cebc7c2 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 21 Jul 2025 15:55:30 +0000 Subject: [PATCH] Update readme with better information for running nixos-anywhere Without this I was getting errors like: > error: flake 'flake:nixos-anywhere' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."digitalocean".config.system.build.diskoScript', 'legacyPackages.x86_64-linux.nixosConfigurations."digitalocean".config.system.build.diskoScript' or 'nixosConfigurations."digitalocean".config.system.build.diskoScript' I'm not sure why. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6fd9eb..bfc0e12 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,8 @@ $ digitalocean/create-droplet.sh ### Convert to NixOS with nixos-anywhere ``` -$ nix run github:nix-community/nixos-anywhere -- --flake nixos-anywhere#digitalocean --target-host root@1.2.3.4 +$ cd nixos-anywhere +$ nix run github:nix-community/nixos-anywhere -- --flake ./#digitalocean --target-host root@1.2.3.4 ``` This will take a while, maybe 20 minutes, but after you'll have a fully-functioning NixOS system with the correct SSH keys.