{ config, lib, ... }: with lib; let cfg = config.nixfiles.modules.emacs; in { config = mkIf cfg.enable { services.emacs = { enable = false; # TODO Figure out how to use this. inherit (config.hm.programs.doom-emacs) package; }; }; }