nixcfg/modules/nixos/tools/qmk/default.nix
2024-01-11 10:31:04 +00:00

22 lines
394 B
Nix

{ options, config, pkgs, lib, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.tools.qmk;
in
{
options.plusultra.tools.qmk = with types; {
enable = mkBoolOpt false "Whether or not to enable QMK";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
qmk
];
services.udev.packages = with pkgs; [
qmk-udev-rules
];
};
}