Add format script, move into subdir

This commit is contained in:
Sandro - 2023-03-23 19:19:29 +01:00
parent 1df9fec4bb
commit 51110d11dd
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 4 additions and 0 deletions

View File

@ -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}";

2
disko/format-disk.sh Executable file
View File

@ -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