1
1
Fork 1
mirror of https://github.com/oddlama/nixos-extra-modules.git synced 2025-10-10 22:00:39 +02:00

fix: adjust part* functions for disko type=gpt

This commit is contained in:
oddlama 2024-04-10 20:35:01 +02:00
parent 3255475eb6
commit 0f4e5f7391
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -14,30 +14,37 @@ _inputs: final: prev: {
}; };
}; };
}; };
gpt = { gpt = rec {
partGrub = start: end: { partGrub = {
inherit start end; priority = 1;
size = "1M";
type = "ef02"; type = "ef02";
}; };
partEfi = start: end: { partEfi = size: {
inherit start end; inherit size;
priority = 1000;
type = "ef00"; type = "ef00";
hybrid.mbrBootableFlag = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
partSwap = start: end: { partBoot = size:
inherit start end; partEfi size
// {
hybrid.mbrBootableFlag = true;
};
partSwap = size: {
inherit size;
priority = 2000;
content = { content = {
type = "swap"; type = "swap";
randomEncryption = true; randomEncryption = true;
}; };
}; };
partLuksZfs = luksName: pool: start: end: { partLuksZfs = luksName: pool: size: {
inherit start end; inherit size;
content = final.lib.disko.content.luksZfs luksName pool; content = final.lib.disko.content.luksZfs luksName pool;
}; };
}; };