30 lines
783 B
Nix
30 lines
783 B
Nix
{ config, pkgs, flakeRoot, ... }:
|
|
|
|
{
|
|
############################
|
|
# System-wide Emacs
|
|
############################
|
|
environment.systemPackages = [
|
|
pkgs.emacs-pgtk.override { withTreeSitter = true; }
|
|
];
|
|
|
|
############################
|
|
# Home Manager configuration
|
|
############################
|
|
# Only include these if this module is evaluated in the Home Manager context
|
|
# (i.e., via home-manager.nixosModules.home-manager)
|
|
home.sessionVariables = {
|
|
EDITOR = "emacs";
|
|
XDG_SCREENSHOTS_DIR = "~/screenshots";
|
|
};
|
|
|
|
home.file = {
|
|
".emacs.d/early-init.el" = {
|
|
source = "${flakeRoot}/assets/traveldroid/conf/emacs/early-init.el";
|
|
};
|
|
".emacs.d/init.el" = {
|
|
source = "${flakeRoot}/assets/traveldroid/conf/emacs/init.el";
|
|
};
|
|
};
|
|
}
|