2022-05-25 19:21:31 -04:00
|
|
|
{ config, pkgs, doomEmacs, ... }:
|
2022-05-25 04:48:14 -04:00
|
|
|
let
|
|
|
|
emacsPackage = (pkgs.emacsPackagesFor pkgs.emacsPgtkNativeComp).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 = [
|
2022-05-25 04:48:14 -04:00
|
|
|
emacsPackage
|
2022-05-02 20:13:18 -04:00
|
|
|
# For markdown rendering
|
2022-05-25 19:21:31 -04:00
|
|
|
pkgs.python310Packages.grip
|
2022-05-03 05:05:12 -04:00
|
|
|
# For graph generation
|
|
|
|
pkgs.graphviz
|
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
|
2022-05-25 04:48:14 -04:00
|
|
|
# TODO:Reenable, currently off because of ghub
|
2022-04-21 15:18:47 -04:00
|
|
|
imports = [ doomEmacs ];
|
|
|
|
programs.doom-emacs = {
|
2022-05-25 04:48:14 -04:00
|
|
|
enable = false;
|
2022-04-21 15:18:47 -04:00
|
|
|
doomPrivateDir = ../doom.d;
|
2022-05-25 04:48:14 -04:00
|
|
|
emacsPackage = emacsPackage;
|
2022-04-21 15:18:47 -04:00
|
|
|
};
|
|
|
|
# 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;
|
2022-05-25 04:48:14 -04:00
|
|
|
# TODO remove when we enable doom-emacs again
|
|
|
|
package = emacsPackage;
|
2022-04-21 15:18:47 -04:00
|
|
|
};
|
2022-05-25 14:25:39 -04:00
|
|
|
# Link up the doom configuration for now
|
|
|
|
home.file = {
|
|
|
|
".doom.d/config.org".source = ../doom.d/config.org;
|
|
|
|
".doom.d/init.el".source = ../doom.d/init.el;
|
|
|
|
".doom.d/packages.el".source = ../doom.d/packages.el;
|
|
|
|
};
|
2022-04-21 15:18:47 -04:00
|
|
|
};
|
2021-12-20 13:37:26 -05:00
|
|
|
}
|