From 7aa390883104725c64c65d20a0713cfcd654f637 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Tue, 21 Oct 2025 10:38:26 -0500 Subject: More correct dfu-util flash script + rearranged personal devices --- modules/pinecil.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/pinecil.nix') diff --git a/modules/pinecil.nix b/modules/pinecil.nix index d59c37d..137de94 100644 --- a/modules/pinecil.nix +++ b/modules/pinecil.nix @@ -2,7 +2,9 @@ inherit (lib) mkOption mkPackageOption mkIf types; in { options = { - type = types.enum [ "pinecil" ]; + type = mkOption { + type = types.enum [ "pinecil" ]; + }; pinecil = { version = mkOption { @@ -36,7 +38,7 @@ in { '' else '' cp ${iron}/Pinecilv2_EN.bin $out - ''; + '' ); }; @@ -48,10 +50,10 @@ in { build.flash = let flasher = if config.pinecil.version == "v1" then { pkg = config.pinecil.dfu-util; - tool = "dfu-util"; + tool = "dfu-util -D"; } else { pkg = config.pinecil.blisp; - tool = "blisp" + tool = "blisp write -c bl70x --reset"; }; in pkgs.writeShellApplication { name = "flash"; -- cgit v1.2.3