nixos-config/home/emacs.nix
Antoine Martin c3457db32e home: emacs: revert to emacsGcc
Following overlay update, the name change was reverted
2021-12-14 16:27:16 +01:00

34 lines
703 B
Nix

{ config, lib, pkgs, ... }:
{
options.my.home.emacs = with lib; {
enable = mkEnableOption "Emacs daemon configuration";
};
config = lib.mkIf config.my.home.emacs.enable {
home.sessionVariables = {
EDITOR = "emacsclient -t";
};
home.packages = with pkgs; [
sqlite # needed by org-roam
# fonts used by my config
emacs-all-the-icons-fonts
iosevka-bin
];
# make sure above fonts are discoverable
fonts.fontconfig.enable = true;
services.emacs = {
enable = true;
# generate emacsclient desktop file
client.enable = true;
};
programs.emacs = {
enable = true;
package = pkgs.emacsGcc;
};
};
}