mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
39 lines
897 B
Nix
39 lines
897 B
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
vdb = {
|
||
|
type = "disk";
|
||
|
device = "/dev/vdb";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
size = "100M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
luks = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "luks";
|
||
|
name = "crypted";
|
||
|
extraOpenArgs = [ "--allow-discards" ];
|
||
|
passwordFile = "/tmp/secret.key";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "ext4";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|