summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
AgeCommit message (Collapse)Author
2024-08-06Merge pull request #201202 from m-bdf/sdboot-infinite-timeoutFranz Pletz
2024-08-06Merge pull request #319422 from jmbaur/systemd-boot-devicetreeFranz Pletz
2024-08-05nixos/systemd-boot: Add reboot-for-bitlocker supportThibault Polge
Windows with BitLocker and TPM enabled doesn't support boot chaining. This option activates a special experimental mode in systemd-boot that tries to detect such systems and, if detected and selected by the user at the boot menu, set the BootNext EFI variable to it before resetting.
2024-08-05nixos/systemd-boot: fix infinite timeoutMaëlys Bras de fer
2024-08-01nixos/systemd-boot: add support for devicetree entryJared Baur
The [Boot Loader Specification](https://uapi-group.org/specifications/specs/boot_loader_specification/) allows for using a key called "devicetree" for specifying which devicetree the bootloader should use during boot. With regards to systemd-boot, this key is used to specify which file should be picked up from the ESP to install to the EFI DTB Configuration Table. Linux then uses this Configuration Table to setup the machine. This change is similar to the one done in https://github.com/NixOS/nixpkgs/pull/295096, where that change was for adding DTB support to systemd-stub, and this is for systemd-boot.
2024-07-26nixos/systemd-boot: init boot countingJulien Malka
Update nixos/modules/system/boot/loader/systemd-boot/boot-counting.md Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2024-07-16nixos/systemd-boot: give systemdBootBuilder a better nameSandro Jäckel
Before it had twice a store hash which made nix store diff-closures kinda ugly.
2024-06-18nixos/systemd-boot: guard assertion messages against eval failuresPhilip Taron
These messages should be able to be printed in all cases. In particular, trying to coerce a `null` to a string is an error unless passed through `toString`.
2024-04-30nixos/systemd-boot: Avoid remote mypy executions (#263397)nicoo
2024-04-23nixos/systemd-boot: avoid expensive mypy builds on configuration changesJörg Thalheim
* Mypy dependencies pull in quite a few packages, which makes it harder to create offline installers.
2024-04-13nixos: remove all uses of lib.mdDocstuebinm
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-03-02systemd-boot: introduce options to set a sort-key for systemd-boot entriesr-vdp
Without sort-keys specified on entries, the entries are sorted only by file name (in decreasing order, so starting at the end of the alphabet!), without taking any other fields into account (see [the boot loader specification reference][1]). Moreover, entries without a sort-key are always ordered after all entries with a sort-key, so by not adding a sort-key to the NixOS ones, we cannot add a sort-key to any other entry while keeping it below the NixOS entries. So currently we have options to set the file names for additional entries like memtest and netbootxyz. However, as mentioned above, the sorting by file name is not very intuitive and actually sorts in the opposite order of what is currently mentioned in the option descriptions. With this commit, we set a configurable sort-key on all NixOS entries, and add options for setting the sort-keys for the memtest and netbootxyz entries. The sorting by sort-key is more intuitive (it starts at the start of the alphabet) and also takes into account the machine-id and version for entries with identical sort-keys. We use a bootspec extension to store the sort keys, which allows us to redefine the sort key for individual specialisations without needing any special casing. [1]: https://uapi-group.org/specifications/specs/boot_loader_specification/#sorting
2024-02-26nixos/systemd-boot: Add support for an XBOOTLDR partitionSiddhartha
2024-02-24nixos/systemd-boot: fix cross for lint checkJared Baur
Since we are not in a `callPackage` context, dependencies in `nativeBuildInputs` don't get spliced to the buildPlatform, causing a cross-compiled nixos system to fail at this step when running mypy built for the hostPlatform.
2024-01-31nixos/systemd-boot: fix editor optionJörg Thalheim
2024-01-27nixos/systemd-boot: move builder script in bin folderJulien Malka
2024-01-19Update systemd-boot.nixZolo
Extending the systemd-boot information and where to find more information.
2024-01-11Revert "nixos/systemd-boot: init boot counting"Ryan Lahfa
2024-01-07nixos/systemd-boot: init boot countingJulien Malka
2023-11-17nixos/systemd-boot: allow for bootspec-less generationsJulien Malka
Generation built with old versions of NixOS with no bootspec support may still be present on the system and must be accounted for.
2023-11-04nixos/systemd-boot: add julienmalka as maintainerJulien Malka
2023-10-23Revert "nixos/systemd-boot: Avoid remote mypy executions"Martin Weinelt
This reverts commit ea0dcd0ae14b99c5740acc7a1b874ea4446cb5be.
2023-10-19nixos/systemd-boot: Avoid remote mypy executionsnicoo
2023-10-10Revert "nixos/systemd-boot: skip EFI update to 252"Jörg Thalheim
This reverts commit 80665d606ab66a82fc969a24a8d0143914683806. Parsing the package version broke our systemd-boot builder test. i.e. it won't be able to parse systemd-boot efi binaries coming from ubuntu We no longer use the faulty systemd-boot version so this code should no longer be needed.
2023-09-10nixos/systemd-boot: Fix Memtest86+ name.Anders Kaseorg
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-08-14nixos/systemd-boot: Replace proprietary memtest86 with free memtest86+ in UEFIenc0urage
2023-04-07treewide: use more lib.optionalStringFelix Buehler
2023-01-14nixos/version: add config.system.nixos.distroName and ↵Victor Fuentes
config.system.nixos.distroId
2022-12-29nixos/systemd-boot: skip EFI update to 252Naïm Favier
That version has a regression that leaves some machines unbootable. While we wait for the fix (252.2) to land in master, this is a workaround that should save people some pain.
2022-11-14boot.loader.systemd-boot: add extraInstallCommands option (#200715)Markus Partheymueller
2022-08-31nixos/*: md-convert options with unordered listspennae
mostly no rendering changes. some lists (like simplelist) don't have an exact translation to markdown, so we use a comma-separated list of literals instead.
2022-07-30treewide: automatically md-convert option descriptionspennae
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-05-02systemd-boot: use mktemp from coreutils in installerK900
People running nixos-install in non-NixOS environments occasionally run into the mktemp builtin not being loaded into bash (yes, even NixOS' bash). Rather than try and figure out why exactly that is happening, just use a known good mktemp from coreutils.
2021-12-23nixos/systemd-boot: Add option to add netboot.xyzMichael Hoang
2021-12-23nixos/systemd-boot: Support extra EFI entriesMichael Hoang
2021-10-11systemd-boot: add 'graceful' configuration optionJoerie de Gram
On some systems bootctl cannot write the `LoaderSystemToken` EFI variable during installation, which results in a failure to install the boot loader. Upstream provides a flag (--graceful) to ignore such write failures - this change exposes it as a configuration option. As the exact semantics of this option appear to be somewhat volatile it should be used only if systemd-boot otherwise fails to install.
2021-01-10nixos/systemd-boot: add typecheckingJörg Thalheim
2020-08-07nixos/modules: remove trailing whitespaceJörg Thalheim
This leads to ci failure otherwise if the file gets changed. git-blame can ignore whitespace changes.
2019-07-23system-boot: configurationLimit should be null as defaultDomen Kožar
2019-06-22Add configurationLimit to systemd-boot to prevent running out of disk spaceDomen Kožar
Refs #23926
2019-05-31Revert "treewide: use buildPackages for config builders"Christian Kampka
This reverts commit 35af6e36057cafbb30df684326803e9e54bb377e.
2019-05-20Merge pull request #61036 from cdepillabout/nixos-memtest-loaderMatthew Bauer
nixos/systemd-boot: add support for memtest86 EFI app
2019-05-21Change non-open-source to unfree in description.(cdep)illabout
2019-05-13FIx some malformed XML in option descriptionsEelco Dolstra
E.g. these were using "<para>" at the *end* of a description. The real WTF is that this is possible at all...
2019-05-06nixos/systemd-boot: add support for memtest86 EFI app(cdep)illabout
This commit adds support for installing the memtest86 EFI app and adding a boot entry for it with systemd-boot.
2019-01-02treewide: use buildPackages for config buildersMatthew Bauer
2018-07-02nixos/systemd-boot: Add consoleMode optionSilvan Mosberger
2017-04-02systemd-boot: Support initrd secretsShea Levy
2017-01-21systemd-boot: fix evaluationFranz Pletz
2017-01-21systemd-boot: allow setting editor security option (#21853)Linus Heckemann