nix-conf/systems/omoikane/disk.nix

41 lines
949 B
Nix
Raw Normal View History

2024-11-19 23:09:04 +01:00
{...}:
{
disko.devices = {
disk = {
main = {
type = "disk";
2024-11-24 00:26:52 +01:00
device = "/dev/nvme0n1";
2024-11-19 23:09:04 +01:00
content = {
type = "gpt";
partitions = {
ESP = {
2024-11-24 00:26:52 +01:00
size = "500M";
2024-11-19 23:09:04 +01:00
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
2024-11-24 00:26:52 +01:00
luks = {
size = "100%";
2024-11-19 23:09:04 +01:00
content = {
type = "luks";
2024-11-24 00:26:52 +01:00
name = "crypted";
settings.allowDiscards = true;
passwordFile = "/tmp/secret.key";
2024-11-19 23:09:04 +01:00
content = {
type = "filesystem";
2024-11-24 00:26:52 +01:00
format = "ext4";
2024-11-19 23:09:04 +01:00
mountpoint = "/";
};
};
};
};
};
};
};
};
}