mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-20 00:19:25 +03:00
Merge pull request #264419 from Noodlez1232/joycond-cemuhook
joycond-cemuhook: init at unstable-2023-08-09
This commit is contained in:
commit
00bee09724
3 changed files with 60 additions and 0 deletions
17
nixos/modules/programs/joycond-cemuhook.nix
Normal file
17
nixos/modules/programs/joycond-cemuhook.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue