mirror of
https://git.mediani.de/mirrors_public/oddlama_nixos-extra-modules.git
synced 2025-10-11 06:10:39 +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,
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue