mirror of
https://git.mediani.de/mirrors_public/oddlama_nixos-extra-modules.git
synced 2025-10-10 22:10:38 +02:00
fix: typos and recursion
This commit is contained in:
parent
5072dd354d
commit
c2b389938b
1 changed files with 6 additions and 8 deletions
|
@ -3,14 +3,14 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
option.boot.mode = lib.mkOption {
|
||||
options.boot.mode = lib.mkOption {
|
||||
description = "Enable recommended Options for different boot modes";
|
||||
type = lib.types.nullOr (lib.types.enum ["bios" "efi" "secureboot"]);
|
||||
default = null;
|
||||
};
|
||||
config = let
|
||||
config.boot.loader = let
|
||||
bios-conf = {
|
||||
boot.loader.grub = {
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = false;
|
||||
configurationLimit = 32;
|
||||
|
@ -18,11 +18,9 @@
|
|||
};
|
||||
efi-conf = {
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.configurationLimit = 32;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.configurationLimit = 32;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
in
|
||||
lib.mkIf (config.boot.mode != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue