luks migration, home migration fixes
This commit is contained in:
+30
-20
@@ -6,16 +6,13 @@
|
||||
type = "disk";
|
||||
device = "/dev/mmcblk0";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "mbr";
|
||||
partitions = [
|
||||
{
|
||||
# Raspberry Pi firmware partition — must be vfat and first
|
||||
name = "firmware";
|
||||
type = "primary";
|
||||
start = "1MiB";
|
||||
end = "512MiB";
|
||||
bootable = true;
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
# Raspberry Pi firmware partition — must be vfat and first
|
||||
firmware = {
|
||||
size = "256MiB";
|
||||
type = "EF00";
|
||||
priority = 1;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
@@ -25,20 +22,33 @@
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
# Root filesystem
|
||||
name = "root";
|
||||
type = "primary";
|
||||
start = "512MiB";
|
||||
end = "100%";
|
||||
};
|
||||
# NixOS boot partition — holds kernels/initrds for each generation
|
||||
boot = {
|
||||
size = "1GiB";
|
||||
priority = 2;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
# Root filesystem — LUKS-encrypted, unlocked via TPM 2.0 HAT
|
||||
root = {
|
||||
size = "100%";
|
||||
priority = 3;
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "cryptroot";
|
||||
settings.allowDiscards = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user