1
1
Fork 1
mirror of https://github.com/oddlama/nixos-extra-modules.git synced 2025-10-10 22:00:39 +02:00

fix: typos and recursion

This commit is contained in:
Patrick Großmann 2023-12-22 20:40:21 +01:00
parent 5072dd354d
commit c2b389938b
No known key found for this signature in database
GPG key ID: 451F95EFB8BECD0F

View file

@ -3,14 +3,14 @@
lib, lib,
... ...
}: { }: {
option.boot.mode = lib.mkOption { options.boot.mode = lib.mkOption {
description = "Enable recommended Options for different boot modes"; description = "Enable recommended Options for different boot modes";
type = lib.types.nullOr (lib.types.enum ["bios" "efi" "secureboot"]); type = lib.types.nullOr (lib.types.enum ["bios" "efi" "secureboot"]);
default = null; default = null;
}; };
config = let config.boot.loader = let
bios-conf = { bios-conf = {
boot.loader.grub = { grub = {
enable = true; enable = true;
efiSupport = false; efiSupport = false;
configurationLimit = 32; configurationLimit = 32;
@ -18,11 +18,9 @@
}; };
efi-conf = { efi-conf = {
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader = { systemd-boot.enable = true;
systemd-boot.enable = true; systemd-boot.configurationLimit = 32;
systemd-boot.configurationLimit = 32; efi.canTouchEfiVariables = true;
efi.canTouchEfiVariables = true;
};
}; };
in in
lib.mkIf (config.boot.mode != null) lib.mkIf (config.boot.mode != null)