2022-04-21 15:18:47 -04:00
|
|
|
{ config, pkgs, unstable, doomEmacs, ... }:
|
|
|
|
let
|
2022-05-02 02:00:58 -04:00
|
|
|
emacsPackage = (unstable.emacsPackagesFor unstable.emacsPgtkNativeComp).emacsWithPackages (epkgs: with epkgs; [
|
2022-04-21 15:18:47 -04:00
|
|
|
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
|
2022-05-02 20:13:18 -04:00
|
|
|
# For markdown rendering
|
|
|
|
pkgs.pythonPackages.grip
|
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 = {
|
2022-04-22 14:59:06 -04:00
|
|
|
enable = pkgs.stdenv.isLinux;
|
2022-04-21 15:18:47 -04:00
|
|
|
client.enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
# TODO remove when we enable doom-emacs again
|
|
|
|
package = emacsPackage;
|
|
|
|
};
|
|
|
|
};
|
2021-12-20 13:37:26 -05:00
|
|
|
}
|