Make the disko config a module.

This commit is contained in:
2024-08-06 07:36:56 +01:00
parent 258b8e1fdf
commit bcd1a5c0d5
4 changed files with 101 additions and 79 deletions

View File

@@ -6,6 +6,6 @@
* on target: dd if=/dev/disk/by-id/<usb drive for encryption key> of=key.bin bs=4096 count=1
* copy key.bin to hosts/<target>/
* use the generated config to create new config in hosts/<target>
* set the actual device IDs in hosts/<target>/disk-config.nix
* set the actual device IDs in hosts/<target>/default.nix
* on base host: nix run github:nix-community/nixos-anywhere -- --flake '.#<target>' nixos@<target IP>
* after confirmed working, update hosts/<target>disk-config.nix to set keyFile to /dev/sdX (otherwise when the USB drive fails it's harder to replace)