Skip to content

Commit

Permalink
fix: use ESP with /boot and systemd-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Nov 10, 2024
1 parent f0e3834 commit ce5240c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nixos/server/blck0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-ssd
(import ./disks.nix { })
../../mixins/hardware/grub-legacy-boot.nix
../../mixins/hardware/systemd-boot.nix
../../mixins/services/bluetooth.nix
];

Expand Down
12 changes: 8 additions & 4 deletions nixos/server/blck0/disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ in
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
# for grub MBR
type = "EF02";
ESP = {
type = "EF00";
size = "1G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/efi";
};
};
root = {
start = "1M";
Expand Down

0 comments on commit ce5240c

Please sign in to comment.