Browse Source

nixos-option: fixes as suggested by @nbp

nixos-19.03
Domen Kožar 7 years ago
parent
commit
18d9904433
  1. 2
      nixos/doc/manual/man-nixos-option.xml
  2. 4
      nixos/modules/installer/tools/nixos-option.sh

2
nixos/doc/manual/man-nixos-option.xml

@ -71,7 +71,7 @@ Description:
Whether to enable the GNU GRUB boot loader.
Declared by:
"/path/to/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix"
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix"
Defined by:
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix"

4
nixos/modules/installer/tools/nixos-option.sh

@ -182,7 +182,9 @@ if test "$(evalOpt "_type" 2> /dev/null)" = '"option"'; then
fi
echo
if example=$(evalOpt "example" - 2> /dev/null); then
echo "Example: $example"
echo "Example:"
echo "$example"
echo
fi
echo "Description:"
echo

Loading…
Cancel
Save