diff --git a/disko-config.nix b/disko/disko-config.nix similarity index 96% rename from disko-config.nix rename to disko/disko-config.nix index 3741e9f6..40f8d831 100644 --- a/disko-config.nix +++ b/disko/disko-config.nix @@ -30,6 +30,8 @@ content = { type = "luks"; name = "crypt-${name}"; + # TODO: add password, otherwise prompt opens + # keyFile = "./keyFile"; content = { type = "lvm_pv"; vg = "lvm-${name}"; diff --git a/disko/format-disk.sh b/disko/format-disk.sh new file mode 100755 index 00000000..9b3a0e36 --- /dev/null +++ b/disko/format-disk.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +nix run github:nix-community/disko -- --mode zap_create_mount ./disko-config.nix --arg disk '"/dev/vda"' --debug