boot loader and disko

This commit is contained in:
twoneis 2025-02-06 15:18:50 +01:00
parent acc28f0d3b
commit c2b825502c
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,5 @@
{ lib, pkgs, ... }: let { pkgs, ... }:
inherit (lib) mkDefault; {
in {
imports = [ imports = [
./options.nix ./options.nix
./disko.nix ./disko.nix
@ -15,6 +14,8 @@ in {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
loader = { loader = {
grub = { grub = {
devices = [ "/dev/sda1" ];
useOSProber = true;
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;
}; };

View file

@ -7,9 +7,10 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { esp = {
priority = 1; priority = 1;
name = "BOOT"; name = "BOOT";
start = "1M";
size = "2G"; size = "2G";
type = "EF00"; type = "EF00";
content = { content = {