pi4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user