mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
upate michishirube to grub bootloader
This commit is contained in:
parent
ce64af4dcc
commit
2dacfb1304
2 changed files with 15 additions and 11 deletions
|
|
@ -12,15 +12,16 @@
|
|||
type = "disk";
|
||||
device = disk;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
MBR = {
|
||||
type = "EF02";
|
||||
size = "1M";
|
||||
priority = 1;
|
||||
name = "ESP";
|
||||
start = "1M";
|
||||
end = "512M";
|
||||
bootable = true;
|
||||
};
|
||||
ESP = {
|
||||
type = "EF00";
|
||||
size = "500M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
|
|
@ -30,8 +31,6 @@
|
|||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
part-type = "primary";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"]; # Override existing partition
|
||||
|
|
@ -14,11 +14,12 @@ in {
|
|||
imports = lib.flatten [
|
||||
# Disks
|
||||
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 = {
|
||||
disk = "/dev/sda";
|
||||
withSwap = false;
|
||||
swapSize = "0";
|
||||
};
|
||||
}
|
||||
# Misc
|
||||
|
|
@ -49,6 +50,10 @@ in {
|
|||
};
|
||||
|
||||
boot.loader = {
|
||||
grub.device = "/dev/sda1";
|
||||
limine = {
|
||||
enable = true;
|
||||
biosSupport = true;
|
||||
biosDevice = "/dev/sda";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue