[Solved] How to set grub theme with LUKs encryption

Hi All,

Im newish to nix/nixos! I am trying to set up a (catppuccin) grub theme. I believe I need to put the theme in the boot partatition, because the other partations are encrypted using LUKs (At leasts what I had to do on Arch).

So for now I manually put the catppuccin theme in my boot folder:

 ls -al /boot/themes/catppuccin-frappe-grub-theme/
.rw-r--r-- 6.8k root 13 Jun 08:36 background.png
.rw-r--r-- 2.4M root 13 Jun 08:36 font.pf2
drwxr-xr-x    - root 13 Jun 08:36 icons
.rw-r--r--  11k root 13 Jun 08:36 logo.png
.rw-r--r--   84 root 13 Jun 08:36 select_c.png
.rw-r--r--  142 root 13 Jun 08:36 select_e.png
.rw-r--r--  139 root 13 Jun 08:36 select_w.png
.rw-r--r-- 1.0k root 13 Jun 08:36 theme.txt

then I try to set the theme in my nix configuration:

  boot = {
    loader = {
     // ... 
      grub.extraConfig = "set theme=/boot/themes/catppuccin-frappe-grub-theme/theme.txt";
      grub.theme = "/boot/themes/catppuccin-frappe-grub-theme";
    };
  };
}

I tried setting both settings above and neither seem to work. The grub menu never shows. Any ideas what I am doing wrong ?

Dotfiles: hosts/framework/default.nix · 59c1390610f53d97096a42bff418eda147ce828c · Haseeb Majid / dotfiles · GitLab

Your system doesn’t use grub. It uses systemd-boot.

1 Like