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 = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
grub = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
efiSupport = true;
|
# security risk, see
|
||||||
device = "nodev";
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L208-L220
|
||||||
configurationLimit = 5;
|
editor = mkForce false;
|
||||||
|
|
||||||
|
# device = "nodev";
|
||||||
|
configurationLimit = 15;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.plymouth = {
|
boot.plymouth = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue