aboutsummaryrefslogtreecommitdiff
path: root/modules/pinecil.nix
diff options
context:
space:
mode:
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";