From f1047f611df1754555bd98d6f90cac7f02c5f24f Mon Sep 17 00:00:00 2001 From: ~noodlez1232 Date: Mon, 30 Oct 2023 11:35:30 -0700 Subject: joycond-cemuhook: init at unstable-2023-08-09 --- nixos/modules/programs/joycond-cemuhook.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nixos/modules/programs/joycond-cemuhook.nix (limited to 'nixos') diff --git a/nixos/modules/programs/joycond-cemuhook.nix b/nixos/modules/programs/joycond-cemuhook.nix new file mode 100644 index 0000000000000..7b129868db28c --- /dev/null +++ b/nixos/modules/programs/joycond-cemuhook.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, config, ... }: +with lib; +{ + options.programs.joycond-cemuhook = { + enable = mkEnableOption (lib.mdDoc "joycond-cemuhook, a program to enable support for cemuhook's UDP protocol for joycond devices."); + }; + + config = lib.mkIf config.programs.joycond-cemuhook.enable { + assertions = [ + { + assertion = config.services.joycond.enable; + message = "joycond must be enabled through `services.joycond.enable`"; + } + ]; + environment.systemPackages = [ pkgs.joycond-cemuhook ]; + }; +} -- cgit 1.4.1