boot/module.nix: switch to systemd-boot
This commit is contained in:
parent
a0bc8023a6
commit
9c7d13c70c
1 changed files with 11 additions and 5 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue