Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
904 B
Nix
46 lines
904 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.boot.loader.external;
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = with maintainers; [
|
|
cole-h
|
|
grahamc
|
|
raitobezarius
|
|
];
|
|
doc = ./external.md;
|
|
};
|
|
|
|
options.boot.loader.external = {
|
|
enable = mkEnableOption "using an external tool to install your bootloader";
|
|
|
|
installHook = mkOption {
|
|
type = with types; path;
|
|
description = ''
|
|
The full path to a program of your choosing which performs the bootloader installation process.
|
|
|
|
The program will be called with an argument pointing to the output of the system's toplevel.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.loader = {
|
|
grub.enable = mkDefault false;
|
|
systemd-boot.enable = mkDefault false;
|
|
supportsInitrdSecrets = mkDefault false;
|
|
};
|
|
|
|
system.build.installBootLoader = cfg.installHook;
|
|
};
|
|
}
|