From 01ebfa7aac8c18965df1a089c50bffcf0052e967 Mon Sep 17 00:00:00 2001 From: Mx Kookie Date: Sun, 3 Jan 2021 17:14:53 +0100 Subject: [PATCH] corenix: change uwu coreboot to use grub2 --- infra/corenix/configs/kookie/uwu.nix | 17 +++++++++++++++-- infra/corenix/flake.nix | 1 - 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/infra/corenix/configs/kookie/uwu.nix b/infra/corenix/configs/kookie/uwu.nix index 3dc56baf8fa..7456c6dc3c9 100644 --- a/infra/corenix/configs/kookie/uwu.nix +++ b/infra/corenix/configs/kookie/uwu.nix @@ -3,7 +3,21 @@ { imports = [ ../boards/x230.nix ../common.nix ]; - seabios.enable = true; + grub2 = { + enable = true; + extraPayloadModules = [ "luks" "crypto" "gcry_sha256" + "gcry_rijndael" "pbkdf2" ]; + extraConfig = '' + menuentry "NixOS" { + cryptomount -u f1440abd-99e3-46a8-aa36-7824972fee54 + search --set=drive1 --fs-uuid 672c497c-18aa-4b00-ac95-78e810363d81 + set root=$drive1 + configfile /grub/grub.cfg + } + ''; + }; + + seabios.asSecondaryPayload = true; corenix = { corebootConfig = { @@ -12,6 +26,5 @@ }; extraFiles."background.png".src = lib.mkForce ./splash.jpg; - }; } diff --git a/infra/corenix/flake.nix b/infra/corenix/flake.nix index ca8d5a6e7f5..6864f384090 100644 --- a/infra/corenix/flake.nix +++ b/infra/corenix/flake.nix @@ -36,7 +36,6 @@ milan-x1c = makeDevice ./configs/milan/milan-x1c.nix; milan-x230t = makeDevice ./configs/milan/milan-x230t.nix; milan-x230-fhd = makeDevice ./configs/milan/milan-x230-fhd.nix; - kookie-uwu = makeDevice ./configs/kookie/uwu.nix; }; in {