about summary refs log tree commit diff
path: root/users/flokli/keyboards/chocofi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/flokli/keyboards/chocofi/default.nix')
-rw-r--r--users/flokli/keyboards/chocofi/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/users/flokli/keyboards/chocofi/default.nix b/users/flokli/keyboards/chocofi/default.nix
new file mode 100644
index 000000000000..b8343f9592cc
--- /dev/null
+++ b/users/flokli/keyboards/chocofi/default.nix
@@ -0,0 +1,25 @@
+{ pkgs, depot, ... }:
+rec {
+  firmware = depot.users.flokli.keyboards.buildSplitKeyboard {
+    name = "nice_nano_v2";
+    board = "nice_nano_v2";
+    shield = "corne_%PART% nice_view_adapter nice_view";
+    zephyrDepsHash = "sha256-D5CAlrO/E6DPbtUJyh/ec8ACpo1XM1jx2gLS2TpklBQ=";
+    src = depot.users.flokli.keyboards.miryoku_config;
+  };
+
+  config-flat = depot.users.flokli.keyboards.mkFlatConfig "corne";
+
+  flash-left = pkgs.writeShellScript "flash.sh" ''
+    cp ${firmware}/zmk_left.uf2 /run/media/$USER/NICENANO/
+  '';
+
+  flash-right = pkgs.writeShellScript "flash.sh" ''
+    cp ${firmware}/zmk_right.uf2 /run/media/$USER/NICENANO/
+  '';
+
+  meta.ci.targets = [
+    "config-flat"
+    "firmware"
+  ];
+}