mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
hetzner_benchmark: document installer
This commit is contained in:
parent
b1395b27ce
commit
327088adc2
1 changed files with 24 additions and 0 deletions
24
README.md
24
README.md
|
|
@ -53,6 +53,30 @@ The `(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")` allows this.
|
|||
|
||||
- profit
|
||||
|
||||
## Hetzner, nixos-anywhere
|
||||
References:
|
||||
- <https://github.com/nix-community/nixos-anywhere/blob/main/docs/quickstart.md>
|
||||
- <https://wiki.nixos.org/wiki/Install_NixOS_on_Hetzner_Cloud>
|
||||
|
||||
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 <https://github.com/nix-community/nixos-anywhere/issues/597>.
|
||||
```fish
|
||||
nixos-anywhere \
|
||||
--generate-hardware-config nixos-generate-config ./hardware-configuration.nix \
|
||||
-i <ssh_identity> \
|
||||
--store-paths $(nix-build --no-out-link \
|
||||
-A nixosConfigurations.hetzner_benchmark.config.system.build.diskoScript \
|
||||
-A nixosConfigurations.hetzner_benchmark.config.system.build.toplevel) \
|
||||
<user>@<host>
|
||||
```
|
||||
|
||||
# Pitfalls
|
||||
## `users.mutableUsers`
|
||||
NEVER set this to true without declaratively setting the passwords.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue