{ lib, config, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.desmume.enable = mkOption { type = types.bool; default = false; description = "enable desmume"; }; config = mkIf config.smayzy.desmume.enable { environment.systemPackages = with pkgs; [ desmume ]; }; }