From 7bf56dc7ac5c718ee7a0ea38911dca6c0cb2badb Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 3 May 2024 15:59:19 +0200 Subject: [PATCH] [Boot] formatting improvements --- boot.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/boot.nix b/boot.nix index f5425fb..7112c08 100644 --- a/boot.nix +++ b/boot.nix @@ -141,9 +141,9 @@ in { example = cfg.efi; type = types.bool; }; - x32abi = { - enable = mkEnableOption "X32 kernel ABI"; - }; + + + x32abi.enable = mkEnableOption "X32 kernel ABI"; kvdo.enable = mkEnableOption "dm-kvdo kernel module"; rtGroupSched.enable = mkEnableOption "RT cgroups"; energyModel.enable = mkEnableOption "Energy Model"; @@ -158,6 +158,7 @@ in { example = true; type = with types; bool; }; + legacy = mkOption rec { description = "Use legacy bootloader"; default = !cfg.efi; @@ -176,7 +177,7 @@ in { description = "Kernel params as attributes (instead of list)"; default = { }; example = { "i915.fastboot" = true; }; - type = types.attrsOf (types.oneOf [ types.bool types.int types.str (types.listOf types.str) ]); + type = with types; attrsOf (oneOf [ bool int str (listOf str) ]); }; kernel = {