1
1
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:
Luflosi 2024-02-10 13:47:47 +01:00
parent 56e55df7b0
commit 0e9771e26a
No known key found for this signature in database
GPG Key ID: 743C5DD6900A1FF0

View File

@ -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";
};
}