2021-04-19 15:42:27 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
options.my.home.emacs = with lib; {
|
|
|
|
enable = mkEnableOption "Emacs daemon configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.my.home.emacs.enable {
|
2021-04-19 16:07:38 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
sqlite # needed by org-roam
|
|
|
|
|
|
|
|
# fonts used by my config
|
|
|
|
emacs-all-the-icons-fonts
|
2021-04-22 16:52:10 +02:00
|
|
|
iosevka-bin
|
2021-04-19 16:07:38 +02:00
|
|
|
];
|
|
|
|
# make sure above fonts are discoverable
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
|
2021-04-19 15:42:27 +02:00
|
|
|
services.emacs = {
|
|
|
|
enable = true;
|
|
|
|
# generate emacsclient desktop file
|
|
|
|
client.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
2021-05-21 11:01:02 +02:00
|
|
|
package = pkgs.emacsPgtkGcc;
|
2021-04-19 15:42:27 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|