nix-config/overhaul/modules/boot/refind.nix
2025-02-11 17:31:06 +01:00

23 lines
377 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 bootloader";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
refind
];
};
}