blob: 1700a6ff0be9b891fcdaa9e929e3fcbfe295b4fa (
plain)
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
29
30
31
32
33
|
{ pkgs, lib, ... }: let
base = {
type = "qmk";
qmk = {
keyboard.name = "novelkeys/nk65b";
build.flash = fw: ''
${pkgs.dfu-util}/bin/dfu-util "${fw}.bin"
'';
};
};
in {
devices = {
"nk65b-default" = base;
"nk65b" = lib.recursiveUpdate base {
qmk.keymap = rec {
name = "mwahaha";
src = pkgs.symlinkJoin {
inherit name;
paths = [
(builtins.path {
inherit name;
path = ./.;
})
(builtins.path {
name = "shared";
path = ../shared;
})
];
};
};
};
};
}
|