aboutsummaryrefslogtreecommitdiff
path: root/infra/corenix/configs/kookie/uwu.nix
blob: 7456c6dc3c9404ac70e67babfba51699ae7a7860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, ... }:

{
  imports = [ ../boards/x230.nix ../common.nix ];

  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 = {
      CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH = "1366";
      CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT = "768";
    };
    
    extraFiles."background.png".src = lib.mkForce ./splash.jpg;
  };
}