System/applications/emacs.nix

34 lines
774 B
Nix
Raw Normal View History

2022-04-21 15:18:47 -04:00
{ config, pkgs, unstable, doomEmacs, ... }:
let
emacsPackage = (unstable.emacsPackagesFor unstable.emacsPgtkGcc).emacsWithPackages (epkgs: with epkgs; [
vterm
pdf-tools
]);
in
2021-12-20 13:37:26 -05:00
{
# Install emacs
2022-04-21 15:18:47 -04:00
environment.systemPackages = [
emacsPackage
2021-12-20 13:37:26 -05:00
];
2022-04-21 15:18:47 -04:00
# Utilize home-manager
home-manager.users.nathan = {
# Nixify doomEmacs
# TODO:Reenable, currently off because of splash bug
imports = [ doomEmacs ];
programs.doom-emacs = {
enable = false;
doomPrivateDir = ../doom.d;
emacsPackage = emacsPackage;
};
# Startup service
services.emacs = {
enable = true;
client.enable = true;
defaultEditor = true;
# TODO remove when we enable doom-emacs again
package = emacsPackage;
};
};
2021-12-20 13:37:26 -05:00
}