diff --git a/modules/system/boot/module.nix b/modules/system/boot/module.nix index e9fa481..9ba50c5 100644 --- a/modules/system/boot/module.nix +++ b/modules/system/boot/module.nix @@ -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 = {