initial commit

This commit is contained in:
Chris Cochrun 2025-11-11 10:20:51 -06:00
commit 8227244e06
6 changed files with 416 additions and 0 deletions

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "QMK firmware builder for my keyboard";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixcaps.url = "github:agustinmista/nixcaps/main";
};
outputs =
{
nixpkgs,
flake-utils,
nixcaps,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
compile = nixcaps.packages.${system}.compile;
in
{
packages.default = compile {
keyboard = "keebio/iris";
variant = "rev6";
src = ./.;
flash = fw: ''
echo "Flashing ${fw}.hex ..."
${pkgs.teensy-loader-cli}/bin/teensy-loader-cli -mmcu=atmega32u4 -v -w ${fw}.hex
'';
};
}
);
}