about summary refs log tree commit diff
path: root/users/flokli/keyboards/corneish_zen/default.nix
blob: 703359bd488ce7360504b3003c27db661c463aa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ pkgs, depot, ... }:
rec {
  firmware = depot.users.flokli.keyboards.buildSplitKeyboard {
    name = "corneish_zen_v1";
    board = "corneish_zen_v1_%PART%";
    zephyrDepsHash = "sha256-Qe9G5YLEi9iG5QdmJCxcmQTpzUCBYkfa84zk7SVRSgQ=";
    src = depot.users.flokli.keyboards.miryoku_config;
    extraCmakeFlags = [
      "-DCONFIG_ZMK_MOUSE=y"
      "-DCONFIG_ZMK_MOUSE_SMOOTH_SCROLLING=y"
    ];
  };

  config-flat = depot.users.flokli.keyboards.mkFlatConfig "corneish_zen";

  flash-left = pkgs.writeShellScript "flash.sh" ''
    cp ${firmware}/zmk_left.uf2 /run/media/$USER/CORNEISHZEN/
  '';

  flash-right = pkgs.writeShellScript "flash.sh" ''
    cp ${firmware}/zmk_right.uf2 /run/media/$USER/CORNEISHZEN/
  '';

  meta.ci.targets = [
    "config-flat"
    "firmware"
  ];
}