about summary refs log tree commit diff
path: root/users/flokli/keyboards/dilemma/default.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-01-20T09·47+0200
committerflokli <flokli@flokli.de>2024-01-20T10·28+0000
commit8ab7489418f728c9173ab7b7781932ddbae4f813 (patch)
tree9392e2272c904940ac4c64e7540f3892662a0aad /users/flokli/keyboards/dilemma/default.nix
parenta720278843b5df94a8804dc0b268ac64a87754ce (diff)
feat(users/flokli/kb/dilemma): init custom layout r/7426
So far, this is still a copy from the "via" target, but makes
customization possible.

Change-Id: I9e23808b72b874901a5f8c074763346181b05c1f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10670
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/flokli/keyboards/dilemma/default.nix')
-rw-r--r--users/flokli/keyboards/dilemma/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/users/flokli/keyboards/dilemma/default.nix b/users/flokli/keyboards/dilemma/default.nix
index fc1bb45b3367..04da2254b690 100644
--- a/users/flokli/keyboards/dilemma/default.nix
+++ b/users/flokli/keyboards/dilemma/default.nix
@@ -22,17 +22,22 @@ rec {
     ];
 
     buildPhase = ''
-      make bastardkb/dilemma/3x5_3:via
+      mkdir -p keyboards/bastardkb/dilemma/3x5_3/keymaps/flokli
+      cp ${./config.h} keyboards/bastardkb/dilemma/3x5_3/keymaps/flokli/config.h
+      cp ${./keymap.c} keyboards/bastardkb/dilemma/3x5_3/keymaps/flokli/keymap.c
+      cp ${./rules.mk} keyboards/bastardkb/dilemma/3x5_3/keymaps/flokli/rules.mk
+
+      make bastardkb/dilemma/3x5_3:flokli
     '';
 
     installPhase = ''
       mkdir -p $out
-      cp bastardkb_dilemma_3x5_3_via.uf2 $out/
+      cp bastardkb_dilemma_3x5_3_flokli.uf2 $out/
     '';
   };
 
   flash = pkgs.writeShellScript "flash.sh" ''
-    ${pkgs.qmk}/bin/qmk flash ${firmware}/bastardkb_dilemma_3x5_3_via.uf2
+    ${pkgs.qmk}/bin/qmk flash ${firmware}/bastardkb_dilemma_3x5_3_flokli.uf2
   '';
 
   meta.ci.targets = [ "firmware" ];