System/applications/emacs.nix

34 lines
789 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 = {
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
}