Skip to content

Commit

Permalink
nixos: Explain system.build.installBootLoader's odd default
Browse files Browse the repository at this point in the history
I don't really approve of this solution, but documenting its
purpose was the least I could do for now.
  • Loading branch information
roberth committed Jan 24, 2022
1 parent 511e89f commit 4800f30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/system/activation/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ in
system.build = tmpFixupSubmoduleBoundary {
installBootLoader = mkOption {
internal = true;
# "; true" => make the `$out` argument from switch-to-configuration.pl
# go to `true` instead of `echo`, hiding the useless path
# from the log.
default = "echo 'Warning: do not know how to make this configuration bootable; please enable a boot loader.' 1>&2; true";
description = ''
A program that writes a bootloader installation script to the path passed in the first command line argument.
Expand Down

0 comments on commit 4800f30

Please sign in to comment.