From c2b389938b166987c4a4fb867ccaa8ff530ddc71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Gro=C3=9Fmann?= Date: Fri, 22 Dec 2023 20:40:21 +0100 Subject: [PATCH] fix: typos and recursion --- modules/boot.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/boot.nix b/modules/boot.nix index 69528e1..ec43ea5 100644 --- a/modules/boot.nix +++ b/modules/boot.nix @@ -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)