1 { lib, pkgs, config, ... }:
3 options.programs.joycond-cemuhook = {
4 enable = lib.mkEnableOption "joycond-cemuhook, a program to enable support for cemuhook's UDP protocol for joycond devices";
7 config = lib.mkIf config.programs.joycond-cemuhook.enable {
10 assertion = config.services.joycond.enable;
11 message = "joycond must be enabled through `services.joycond.enable`";
14 environment.systemPackages = [ pkgs.joycond-cemuhook ];