This commit is contained in:
mjallen18
2026-01-02 14:31:10 -06:00
parent 5c359dca81
commit 451f5aa726
6 changed files with 55 additions and 34 deletions

View File

@@ -121,19 +121,6 @@ in
content = {
type = "gpt";
partitions = {
FIRMWARE = lib.mkIf cfg.enableFirmware {
priority = 1;
name = "${config.${namespace}.network.hostName}-FIRMWARE";
start = "1M";
end = "1G";
type = "0700";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/firmware";
mountOptions = [ "umask=0077" ];
};
};
ESP = {
priority = if cfg.enableFirmware then 2 else 1;
type = "EF00";
@@ -156,6 +143,28 @@ in
};
};
};
firmware = lib.mkIf cfg.enableFirmware {
device = "/dev/mmcblk0";
type = "disk";
imageSize = "1G";
content = {
type = "table";
format = "msdos";
partitions = [
{
name = "${config.${namespace}.network.hostName}-FIRMWARE";
start = "1M";
end = "1G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/firmware";
mountOptions = [ "umask=0077" ];
};
}
];
};
};
};
# configure Bcachefs