boot/module.nix: switch to systemd-boot

This commit is contained in:
Charlie Root 2025-03-08 17:26:49 +01:00
commit 9c7d13c70c
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -1,11 +1,17 @@
{pkgs, ...}: {
{lib, pkgs, ...}:let
inherit (lib.modules) mkForce;
in {
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
systemd-boot = {
enable = true;
efiSupport = true;
device = "nodev";
configurationLimit = 5;
# security risk, see
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L208-L220
editor = mkForce false;
# device = "nodev";
configurationLimit = 15;
};
};
boot.plymouth = {