mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-09-17 14:57:22 +03:00
Disable warning about not having a bootloader
Without this change, rebuilding the system would always print the following warning: ``` Warning: do not know how to make this configuration bootable; please enable a boot loader. ``` This is a useless warning when mobile-nixos is used as a "bootloader" and may confuse/scare new users.
This commit is contained in:
parent
56e55df7b0
commit
0e9771e26a
@ -26,6 +26,9 @@ in
|
||||
config = mkIf (config.mobile.bootloader.enable) {
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.generic-extlinux-compatible.enable = false;
|
||||
|
||||
# Shut up warning about not having a boot loader.
|
||||
system.build.installBootLoader = lib.mkDefault "${pkgs.coreutils}/bin/true";
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user