diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-10-21 10:38:26 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-10-21 10:38:26 -0500 |
| commit | 7aa390883104725c64c65d20a0713cfcd654f637 (patch) | |
| tree | a3a33e5423e9136ad064b48aee0e41966329c1f0 /modules/pinecil.nix | |
| parent | e3343bc80dc54416d4e8ee6a60a8e92b630810de (diff) | |
| download | fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar.gz fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar.bz2 fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar.lz fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar.xz fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.tar.zst fw-manager-7aa390883104725c64c65d20a0713cfcd654f637.zip | |
More correct dfu-util flash script + rearranged personal devices
Diffstat (limited to 'modules/pinecil.nix')
| -rw-r--r-- | modules/pinecil.nix | 10 |
1 files changed, 6 insertions, 4 deletions
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"; |
