2025-04-01 15:15:51 -04:00
|
|
|
# USAGE in your configuration.nix.
|
|
|
|
# Update devices to match your hardware.
|
|
|
|
# {
|
|
|
|
# imports = [ ./disko-config.nix ];
|
|
|
|
# disko.devices.disk.main.device = "/dev/sda";
|
|
|
|
# }
|
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
main = {
|
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
type = "EF00";
|
|
|
|
size = "500M";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
mountOptions = [ "umask=0077" ];
|
|
|
|
};
|
|
|
|
priority = 1;
|
|
|
|
};
|
|
|
|
root = {
|
2024-12-05 01:42:35 -05:00
|
|
|
end = "-1G";
|
2025-04-01 15:15:51 -04:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
encryptedSwap = {
|
|
|
|
size = "1G";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
randomEncryption = true;
|
|
|
|
priority = 100; # prefer to encrypt as long as we have space for it
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|