nixos/services.joycond: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:43:19 +02:00
parent d71be6eda5
commit f5c96d88c1

View File

@ -1,19 +1,15 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.joycond;
in
with lib;
{
options.services.joycond = {
enable = mkEnableOption "support for Nintendo Pro Controllers and Joycons";
enable = lib.mkEnableOption "support for Nintendo Pro Controllers and Joycons";
package = mkPackageOption pkgs "joycond" { };
package = lib.mkPackageOption pkgs "joycond" { };
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];