{ pkgs, lib, config, ... }: with lib; let cfg = config.module.programs.custom.rustmission; in { options = { module.programs.custom.rustmission = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { home.packages = with pkgs; [ rustmission ]; xdg.configFile = { "rustmission/config.toml".source = ./config.toml; }; }; }