aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2021-03-10 11:30:08 +0100
committerKatharina Fey <kookie@spacekookie.de>2021-03-10 11:30:08 +0100
commit399affe03e88b7f3bcc25022ff28720e7078657f (patch)
tree56766b227e243bf130dc5da0bfa72ba53631a25a
parentc0a541a38e075974fa52486e1d641d082b03eb8b (diff)
corenix: update uwu coreboot configuration
This changes the default boot payload to grub, which then loads secondary payloads, or can boot NixOS directly. Also include a better boot splash screen.
-rw-r--r--infra/corenix/configs/kookie/splash.pngbin0 -> 24816 bytes
-rw-r--r--infra/corenix/configs/kookie/uwu.nix23
-rw-r--r--infra/corenix/default.nix1
3 files changed, 18 insertions, 6 deletions
diff --git a/infra/corenix/configs/kookie/splash.png b/infra/corenix/configs/kookie/splash.png
new file mode 100644
index 000000000000..abcc6ca4dd9a
--- /dev/null
+++ b/infra/corenix/configs/kookie/splash.png
Binary files differ
diff --git a/infra/corenix/configs/kookie/uwu.nix b/infra/corenix/configs/kookie/uwu.nix
index eacf173bf12b..1d958820708a 100644
--- a/infra/corenix/configs/kookie/uwu.nix
+++ b/infra/corenix/configs/kookie/uwu.nix
@@ -5,16 +5,27 @@
grub2 = {
enable = true;
- extraPayloadModules = [ "luks" "crypto" "gcry_sha256"
- "gcry_rijndael" "pbkdf2" ];
+ extraPayloadModules = [ "luks" "crypto" "gcry_sha256" "lvm"
+ "gcry_rijndael" "pbkdf2" "jpeg" ];
extraConfig = ''
+ set timeout=10
+
menuentry "NixOS" {
- cryptomount -u f1440abd-99e3-46a8-aa36-7824972fee54
- search --set=cryptdrive --fs-uuid 672c497c-18aa-4b00-ac95-78e810363d81
- configfile ($cryptdrive)/grub/grub.cfg
+ insmod luks
+ insmod crypto
+ insmod gcry_sha256
+ insmod gcry_rijndael
+ insmod pbkdf2
+ insmod lvm
+
+ cryptomount -a
+ configfile (lvm/vg0-boot)/grub/grub.cfg
}
'';
};
+
+ tint.enable = true;
+ nvramcui.enable = true;
seabios = {
enable = true;
@@ -27,6 +38,6 @@
CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT = "768";
};
- extraFiles."background.jpg".src = lib.mkForce ./splash.jpg;
+ extraFiles."background.png".src = lib.mkForce ./splash.png;
};
}
diff --git a/infra/corenix/default.nix b/infra/corenix/default.nix
index 44da28b62d67..08cceadc7f84 100644
--- a/infra/corenix/default.nix
+++ b/infra/corenix/default.nix
@@ -31,4 +31,5 @@ in rec {
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;
}