upate michishirube to grub bootloader

This commit is contained in:
TheWanderingCrow 2025-08-07 10:11:41 -04:00
parent ce64af4dcc
commit 2dacfb1304
2 changed files with 15 additions and 11 deletions

View file

@ -12,15 +12,16 @@
type = "disk"; type = "disk";
device = disk; device = disk;
content = { content = {
type = "table"; type = "gpt";
format = "gpt";
partitions = { partitions = {
ESP = { MBR = {
type = "EF02";
size = "1M";
priority = 1; priority = 1;
name = "ESP"; };
start = "1M"; ESP = {
end = "512M"; type = "EF00";
bootable = true; size = "500M";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
@ -30,8 +31,6 @@
}; };
root = { root = {
size = "100%"; size = "100%";
part-type = "primary";
bootable = true;
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = ["-f"]; # Override existing partition extraArgs = ["-f"]; # Override existing partition

View file

@ -14,11 +14,12 @@ in {
imports = lib.flatten [ imports = lib.flatten [
# Disks # Disks
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix") (lib.custom.relativeToRoot "hosts/common/disks/btrfs-over-mbr-disk.nix")
{ {
_module.args = { _module.args = {
disk = "/dev/sda"; disk = "/dev/sda";
withSwap = false; withSwap = false;
swapSize = "0";
}; };
} }
# Misc # Misc
@ -49,6 +50,10 @@ in {
}; };
boot.loader = { boot.loader = {
grub.device = "/dev/sda1"; limine = {
enable = true;
biosSupport = true;
biosDevice = "/dev/sda";
};
}; };
} }