aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2021-01-03 17:14:53 +0100
committerMx Kookie <kookie@spacekookie.de>2021-01-03 17:14:53 +0100
commit01ebfa7aac8c18965df1a089c50bffcf0052e967 (patch)
tree5b5e626d9af2812e6ca305a8909fe7bdabc780eb
parent0cd7d2d430b3e0bfd75db0dfce85b07a3f2e256c (diff)
corenix: change uwu coreboot to use grub2
-rw-r--r--infra/corenix/configs/kookie/uwu.nix17
-rw-r--r--infra/corenix/flake.nix1
2 files changed, 15 insertions, 3 deletions
diff --git a/infra/corenix/configs/kookie/uwu.nix b/infra/corenix/configs/kookie/uwu.nix
index 3dc56baf8faf..7456c6dc3c94 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 ca8d5a6e7f53..6864f3840909 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 {