2023-05-14 20:41:19 +02:00
|
|
|
{ self, ... }:
|
|
|
|
let
|
2023-10-24 17:33:05 +02:00
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02"; # for grub MBR
|
|
|
|
};
|
|
|
|
esp = {
|
|
|
|
size = "500M";
|
|
|
|
type = "EF00"; # for grub MBR
|
2023-05-14 20:41:19 +02:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2023-10-24 17:33:05 +02:00
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
2023-05-14 20:41:19 +02:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
2023-10-24 17:33:05 +02:00
|
|
|
format = "ext4";
|
2023-05-14 20:41:19 +02:00
|
|
|
mountpoint = "/";
|
|
|
|
};
|
2023-10-24 17:33:05 +02:00
|
|
|
};
|
|
|
|
};
|
2023-05-14 20:41:19 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
self.inputs.disko.nixosModules.disko
|
|
|
|
];
|
|
|
|
disko.devices = {
|
|
|
|
disk.sda = {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/sda";
|
|
|
|
content = {
|
2023-10-24 17:33:05 +02:00
|
|
|
type = "gpt";
|
2023-05-14 20:41:19 +02:00
|
|
|
inherit partitions;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|