aboutsummaryrefslogtreecommitdiff
path: root/infra/corenix/configs/kookie/uwu.nix
blob: 1d958820708a7d852772c4d10e3682b1714db7af (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
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib, ... }:

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

  grub2 = {
    enable = true;
    extraPayloadModules = [ "luks" "crypto" "gcry_sha256" "lvm"
                            "gcry_rijndael" "pbkdf2" "jpeg" ];
    extraConfig = ''
      set timeout=10

      menuentry "NixOS" {
        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;
    asSecondaryPayload = true; 
  };

  corenix = {
    corebootConfig = {
      CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH = "1366";
      CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT = "768";
    };
    
    extraFiles."background.png".src = lib.mkForce ./splash.png;
  };
}