How to use rEFInd as boot manager?

Hello, NixOS has the rEFInd boot manager in nixpkgs:

https://search.nixos.org/packages?channel=21.05&show=refind&from=0&size=50&sort=relevance&query=Refind

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

https://search.nixos.org/options?channel=21.05&show=refind&from=0&size=50&sort=relevance&query=Refind

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

http://www.rodsbooks.com/refind/index.html

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:
https://www.rodsbooks.com/refind/installing.html#installsh

1 Like

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

related: https://github.com/NixOS/nixpkgs/pull/58121

2 Likes

Yes, good question! After, I think.

1 Like