nix-config/modules/boot/refind.nix

22 lines
360 B
Nix

{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.boot.refind;
in {
options = {
horseman.boot.refind = {
enable = mkEnableOption "Enables rEFInd, the boot manager";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
refind
efibootmgr
];
};
}