This is a NixOS module to install and configure the rEFInd bootloader completely from nixOS including themes.
| boot.loader.refind.enable | |
| Type | types.bool |
| Default | false |
| Description | Whether to enable the refind EFI boot manager |
| boot.loader.refind.maxGenerations | |
| Type | types.int |
| Default | 100 |
| Description | Maximum number of generations in submenu. This is to avoid problems with refind or possible size problems with the config |
| boot.loader.refind.extraIcons | |
| Type | types.nullOr types.path; |
| Defalt | 100 |
| Description | A directory containing icons to be copied to 'extra-icons' |
| boot.loader.refind.themes | |
| Type | types.listOf types.path; |
| Defalt | [] |
| Description | A list of theme paths to copy |
| boot.loader.refind.extraConfig | |
| Type | types.lines |
| Defalt | "" |
| Description | Extra configuration text appended to refind.conf |
{
boot.loader = {
efi = {
efiSysMountPoint = "/boot/efi";
cantouchEfiVariables = true;
};
refind = {
enable = true;
maxGenerations = 10;
};
};
}boot.loader.efi.cantouchEfiVariables must be enabled for refind to install correctly with boot.loader.efi.efiSysMountPoint correctly pointing to the esp mount point.
betaboon made the original nixos-module for rEFInd on his gist which is the base for this module. Most of this codebase is his code but updated to work on latest nixpkgs-unstable