Merge pull request #285167 from Mic92/systemd-boot

nixos/systemd-boot: fix editor option
This commit is contained in:
Jörg Thalheim 2024-01-31 22:38:09 +07:00 committed by GitHub
commit 7d5c09b02e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,7 @@ from dataclasses import dataclass
# These values will be replaced with actual values during the package build
EFI_SYS_MOUNT_POINT = "@efiSysMountPoint@"
TIMEOUT = "@timeout@"
EDITOR = bool("@editor@")
EDITOR = "@editor@" == "1"
CONSOLE_MODE = "@consoleMode@"
BOOTSPEC_TOOLS = "@bootspecTools@"
DISTRO_NAME = "@distroName@"

View File

@ -22,11 +22,9 @@ let
timeout = optionalString (config.boot.loader.timeout != null) config.boot.loader.timeout;
editor = if cfg.editor then "True" else "False";
configurationLimit = if cfg.configurationLimit == null then 0 else cfg.configurationLimit;
inherit (cfg) consoleMode graceful;
inherit (cfg) consoleMode graceful editor;
inherit (efi) efiSysMountPoint canTouchEfiVariables;