Skip to content

hardware.video.hidpi.enable fails to set the console font early with systemd stage 1 #172403

@andersk

Description

@andersk

Describe the bug

The hardware.video.hidpi.enable option, which nixos-generate-config enables by default on high-resolution displays like my 4K laptop screen, is supposed to set the console font within the initrd before displaying the LUKS password prompt. However, with boot.initrd.systemd.enable, this does not happen until stage 2, so the prompt is tiny.

Steps To Reproduce

Enable hardware.video.hidpi.enable = true, boot.initrd.systemd.enable = true, and LUKS encryption.

Expected behavior

The console font should be switched before the LUKS password prompt, not after.

Notify maintainers

@dasJ @Mic92

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.5, NixOS, 22.05 (Quokka), 22.05.git.804685b6c8d`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.0`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions