2021-11-01 20:33:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-07-29 20:21:51 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.programs.emacs;
|
|
|
|
in {
|
|
|
|
options.ptw.programs.emacs = {
|
|
|
|
enable = lib.mkEnableOption "Configure emacs";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2021-11-04 18:51:49 +00:00
|
|
|
environment.systemPackages = with pkgs; [ emacsPgtkGcc ];
|
2021-11-01 20:33:21 +00:00
|
|
|
services.emacs.package = pkgs.emacsPgtkGcc;
|
2021-08-31 16:01:29 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
home-manager.users."${config.ptw.system.singleUser}".home.file = {
|
|
|
|
".emacs".source = ./dotemacs;
|
|
|
|
".emacs.d/early-init.el".source = ./early-init.el;
|
|
|
|
".emacs.d/mu4e.el".source = ./mu4e.el;
|
|
|
|
};
|
2021-07-29 20:21:51 +00:00
|
|
|
};
|
|
|
|
}
|