diff --git a/README.md b/README.md index 7da3091b..e89685ac 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,30 @@ The `(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")` allows this. - profit +## Hetzner, nixos-anywhere +References: +- +- + +I haven't figured out how to use raid on this machine, as it failed half-way +through the installer when I used the raid configuration. + +### Pitfalls +- nixos-anywhere will wipe the disk, even if you use the flag `--generate-hardware-config`. + +- The command is quite long and isn't non-flake friendly. + Note that the diskoScript has to come before toplevel derivation. + Read more on the order . + ```fish + nixos-anywhere \ + --generate-hardware-config nixos-generate-config ./hardware-configuration.nix \ + -i \ + --store-paths $(nix-build --no-out-link \ + -A nixosConfigurations.hetzner_benchmark.config.system.build.diskoScript \ + -A nixosConfigurations.hetzner_benchmark.config.system.build.toplevel) \ + @ + ``` + # Pitfalls ## `users.mutableUsers` NEVER set this to true without declaratively setting the passwords.