How to use rEFInd as boot manager?

Hello, NixOS has the rEFInd boot manager in nixpkgs:

However there doesn’t appear to be a configuration option for it:

Is there some way to add it to a NixOS configuration and use it to manage booting?

1 Like

This is not a direct answer to your question, but I’ve happily used rEFind with NixOS by installing rEFind in the boot partition (which NixOS doesn’t manage).

1 Like

I don’t think there’s a declarative way to manage refind, you should just run refind-install included in the refind package:

1 Like

Thanks, do you install rEFInd before or after installing NixOS?

related: [WIP] nixos/refind: init by betaboon · Pull Request #58121 · NixOS/nixpkgs · GitHub


Yes, good question! After, I think.

1 Like