diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-07-02 18:21:51 +0200 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2018-07-02 18:21:51 +0200 |
commit | e08148041f4487d364d2701f9107c2ccff620132 (patch) | |
tree | b72ad9669e8849634acc0a29002968d6ec7629eb /nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix | |
parent | dd608f80dbbfd39e072b11174fad0e3751e2d388 (diff) | |
download | nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar.gz nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar.bz2 nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar.lz nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar.xz nixlib-e08148041f4487d364d2701f9107c2ccff620132.tar.zst nixlib-e08148041f4487d364d2701f9107c2ccff620132.zip |
nixos/systemd-boot: Add consoleMode option
Diffstat (limited to 'nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix')
-rw-r--r-- | nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix index a5a88a99be8f..feed863efd66 100644 --- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix +++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix @@ -22,6 +22,8 @@ let editor = if cfg.editor then "True" else "False"; + inherit (cfg) consoleMode; + inherit (efi) efiSysMountPoint canTouchEfiVariables; }; in { @@ -52,6 +54,38 @@ in { compatibility. ''; }; + + consoleMode = mkOption { + default = "keep"; + + type = types.enum [ "0" "1" "2" "auto" "max" "keep" ]; + + description = '' + The resolution of the console. The following values are valid: + </para> + <para> + <itemizedlist> + <listitem><para> + <literal>"0"</literal>: Standard UEFI 80x25 mode + </para></listitem> + <listitem><para> + <literal>"1"</literal>: 80x50 mode, not supported by all devices + </para></listitem> + <listitem><para> + <literal>"2"</literal>: The first non-standard mode provided by the device firmware, if any + </para></listitem> + <listitem><para> + <literal>"auto"</literal>: Pick a suitable mode automatically using heuristics + </para></listitem> + <listitem><para> + <literal>"max"</literal>: Pick the highest-numbered available mode + </para></listitem> + <listitem><para> + <literal>"keep"</literal>: Keep the mode selected by firmware (the default) + </para></listitem> + </itemizedlist> + ''; + }; }; config = mkIf cfg.enable { |