Skip to content

Commit

Permalink
refactor: add keymap-drawer to flake outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Mar 24, 2024
1 parent b1b8e2b commit 7073afb
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 1 deletion.
133 changes: 132 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
url = "github:moergo-sc/zmk";
flake = false;
};
keymap-drawer = {
url = "github:caksoylar/keymap-drawer";
flake = false;
};
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
Expand All @@ -19,6 +27,8 @@
self,
nixpkgs,
glove80-zmk,
keymap-drawer,
poetry2nix,
flake-parts,
devshell,
} @ inputs:
Expand Down Expand Up @@ -52,6 +62,14 @@
in
firmware.combine_uf2 glove80_left glove80_right;

packages.keymap-drawer = let
inherit (poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}) mkPoetryApplication;
in
mkPoetryApplication {
projectDir = keymap-drawer;
preferWheels = true;
};

devshells.default.commands = [
{
name = "flash";
Expand Down

0 comments on commit 7073afb

Please sign in to comment.