infra/hosts/delite/disk-config.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
2.1 KiB
Nix
Raw Normal View History

2024-08-24 01:01:11 +00:00
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
bios = {
size = "1M";
type = "EF02"; # for grub MBR
};
boot = {
size = "1G";
type = "8300";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/boot";
2024-08-24 15:39:49 +00:00
mountOptions = [ "defaults" ];
2024-08-24 01:01:11 +00:00
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "cryptroot";
extraOpenArgs = [ ];
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
passwordFile = "/tmp/luks-password";
content = {
type = "lvm_pv";
vg = "vg0";
};
};
};
};
};
};
};
lvm_vg = {
vg0 = {
type = "lvm_vg";
lvs = {
root = {
size = "40G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
2024-08-24 15:39:49 +00:00
mountOptions = [ "defaults" ];
2024-08-24 01:01:11 +00:00
};
};
swap = {
size = "8G";
content = {
type = "swap";
};
};
data = {
size = "800G";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/var/lib/garage/data";
2024-08-24 15:39:49 +00:00
mountOptions = [ "defaults" ];
2024-08-24 01:01:11 +00:00
};
};
metadata = {
size = "50G";
content = {
type = "filesystem";
format = "btrfs";
mountpoint = "/var/lib/garage/meta";
2024-08-24 15:39:49 +00:00
mountOptions = [ "defaults" ];
2024-08-24 01:01:11 +00:00
};
};
};
};
};
};
}