about summary refs log tree commit diff stats
path: root/modules/by-name/ri/river/module.nix
blob: a059da4d35ae07d422101800d11dc2e4ac418291 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  lib,
  qmk_firmware,
  system,
  ...
}: let
  cfg = config.soispha.programs.river;
in {
  options.soispha.programs.river = {
    enable = lib.mkEnableOption "river";
    unicodeInput = {
      enable = lib.mkEnableOption "udev rules for rawhid based unicode input";
    };
  };

  config = lib.mkIf cfg.enable {
    # TODO: Migrate the complete river module <2024-12-30>
    services.udev.packages = lib.mkIf cfg.unicodeInput.enable [qmk_firmware.packages.${system}.qmk_unicode_type];
  };
}