[SOLVED] I need help setting up a custom grub theme

So i want to setup the big sur grub theme and i have found a couple of other “grub theming” discussions here in the forums, the problem is that i dont understand the exact way im supposed to select the theme as in here i need to type the hash and the rev, however i really dont know how to get that info in order to download the theme. help??

The easiest way to get hash and rev is by using nurl.

$ nurl https://github.com/Teraskull/bigsur-grub2-theme
fetchFromGitHub {
  owner = "Teraskull";
  repo = "bigsur-grub2-theme";
  rev = "b80ac7ee396de54a09e8693b2d86a8b77b1d5098";
  hash = "sha256-tJe9VMFfODdu0Sz4TAwNKqiNi/TNEzoYytlMlhXtaco=";
}

I’d recommend watching vimjoyer’s file fetching video as it goes into some detail on this topic.

There is also the sleek-grub-theme which is already packaged and looks somewhat similar. Doing that is easier, but less fun, so use it’s source as help.

boot.loader.grub.theme = (sleek-grub-theme.override {
  withBanner = "Grub Bootloader";
  withStyle = "bigSur";
});
1 Like

Alr this fixes it, thanks!!!

wait actually i got this error out of nowhere now


how can i fix this?

If you’re using flakes, don’t forget to track the files with git add.

1 Like