summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix42
1 files changed, 0 insertions, 42 deletions
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index 2bbc123..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,42 +0,0 @@
1{
2 inputs = {
3 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4
5 zmk-nix = {
6 url = "github:lilyinstarlight/zmk-nix";
7 inputs.nixpkgs.follows = "nixpkgs";
8 };
9 };
10
11 outputs = { self, nixpkgs, zmk-nix }: let
12 forAllSystems = nixpkgs.lib.genAttrs (nixpkgs.lib.attrNames zmk-nix.packages);
13 in {
14 packages = forAllSystems (system: rec {
15 default = firmware;
16
17 firmware = zmk-nix.legacyPackages.${system}.buildSplitKeyboard {
18 name = "firmware";
19
20 src = nixpkgs.lib.sourceFilesBySuffices self [ ".board" ".cmake" ".conf" ".defconfig" ".dts" ".dtsi" ".json" ".keymap" ".overlay" ".shield" ".yml" "_defconfig" ];
21
22 board = "nice_nano_v2";
23 shield = "cradio_%PART%";
24
25 zephyrDepsHash = "sha256-8h5lSnwxLTIqlvDNNl8fpv6hJFNF146Ck1qUWI/Cqqw=";
26
27 meta = {
28 description = "ZMK firmware";
29 license = nixpkgs.lib.licenses.mit;
30 platforms = nixpkgs.lib.platforms.all;
31 };
32 };
33
34 flash = zmk-nix.packages.${system}.flash.override { inherit firmware; };
35 update = zmk-nix.packages.${system}.update;
36 });
37
38 devShells = forAllSystems (system: {
39 default = zmk-nix.devShells.${system}.default;
40 });
41 };
42}