nix-config/modules/boot/refind.nix
2025-02-28 00:04:49 +01:00

24 lines
396 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
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
];
};
}