11 cfg = config.boot.loader.external;
15 maintainers = with maintainers; [
23 options.boot.loader.external = {
24 enable = mkEnableOption "using an external tool to install your bootloader";
26 installHook = mkOption {
27 type = with types; path;
29 The full path to a program of your choosing which performs the bootloader installation process.
31 The program will be called with an argument pointing to the output of the system's toplevel.
36 config = mkIf cfg.enable {
38 grub.enable = mkDefault false;
39 systemd-boot.enable = mkDefault false;
40 supportsInitrdSecrets = mkDefault false;
43 system.build.installBootLoader = cfg.installHook;