This commit is contained in:
mjallen18
2026-01-09 10:43:45 -06:00
parent 82dffdf505
commit 5f5972f10f
2 changed files with 37 additions and 26 deletions

View File

@@ -121,6 +121,19 @@ in
content = {
type = "gpt";
partitions = {
firmware = lib.mkIf cfg.firmware.enableFirmware {
priority = 1;
type = "0700";
name = "${config.${namespace}.network.hostName}-FIRMWARE";
start = "1M";
end = "1G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/firmware";
mountOptions = [ "umask=0077" ];
};
};
ESP = {
priority = if cfg.enableFirmware then 2 else 1;
type = "EF00";
@@ -143,28 +156,28 @@ in
};
};
};
firmware = lib.mkIf cfg.firmware.enableFirmware {
device = cfg.firmware.firmwareDisk;
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" ];
};
}
];
};
};
# firmware = lib.mkIf cfg.firmware.enableFirmware {
# device = cfg.firmware.firmwareDisk;
# 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