aboutsummaryrefslogtreecommitdiff
path: root/modules/pinecil.nix
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2025-10-21 10:38:26 -0500
committerChris Wells <chris@mathematicaster.org>2025-10-21 10:38:26 -0500
commit7aa390883104725c64c65d20a0713cfcd654f637 (patch)
treea3a33e5423e9136ad064b48aee0e41966329c1f0 /modules/pinecil.nix
parente3343bc80dc54416d4e8ee6a60a8e92b630810de (diff)
downloadfw-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.nix10
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";