diff --git a/modules/base.nix b/modules/base.nix index 352fa82..f64c817 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -58,6 +58,11 @@ in { default = []; description = "Kernel command line"; }; + commandLineDtbNode = mkOption { + type = types.enum [ "bootargs" "bootargs-override" ]; + default = "bootargs"; + description = "Kernel command line's devicetree node"; + }; imageFormat = mkOption { type = types.enum ["fit" "uimage"]; default = "uimage"; diff --git a/modules/outputs.nix b/modules/outputs.nix index d7861d9..84199a2 100644 --- a/modules/outputs.nix +++ b/modules/outputs.nix @@ -111,6 +111,7 @@ in }; uimage = liminix.builders.uimage { commandLine = concatStringsSep " " config.boot.commandLine; + inherit (config.boot) commandLineDtbNode; inherit (config.hardware) loadAddress entryPoint alignment; inherit (config.boot) imageFormat; inherit (o) kernel dtb;