6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
17 lines
514 B
Nix
17 lines
514 B
Nix
{ lib, pkgs, config, ... }:
|
|
with lib;
|
|
{
|
|
options.programs.joycond-cemuhook = {
|
|
enable = mkEnableOption "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 ];
|
|
};
|
|
}
|