commit 0cd1bd99e10ddb25e88a117f2c272e0aedec4c43
parent 6d191b73ae20d449c8daae8188b9474b84498011
Author: Daniel Barlow <dan@telent.net>
Date: Thu, 2 Mar 2023 23:28:39 +0000
declare device.flash options in base.nix
because they're specified in devices/*/default.nix
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/base.nix b/modules/base.nix
@@ -68,6 +68,10 @@ in {
defaultOutput = mkOption {
type = types.nonEmptyStr;
};
+ flash = {
+ address = mkOption { type = types.str; };
+ size = mkOption { type = types.str; };
+ };
loadAddress = mkOption { default = null; };
entryPoint = mkOption { };
radios = mkOption {
diff --git a/modules/flashable.nix b/modules/flashable.nix
@@ -9,10 +9,6 @@ let
inherit (config.boot) tftp;
in {
options = {
- device.flash = {
- address = mkOption { type = types.str; };
- size = mkOption { type = types.str; };
- };
};
config = {
kernel = {