summaryrefslogtreecommitdiffstats
path: root/nixos/modules/programs/joycond-cemuhook.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/programs/joycond-cemuhook.nix')
-rw-r--r--nixos/modules/programs/joycond-cemuhook.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/modules/programs/joycond-cemuhook.nix b/nixos/modules/programs/joycond-cemuhook.nix
new file mode 100644
index 000000000000..7b129868db28
--- /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 ];
+ };
+}