Fix using doom emacs installed from flake

This commit is contained in:
Evie Litherland-Smith 2023-09-12 21:39:44 +01:00
parent 5fd82e89c0
commit 557a020052

View file

@ -1,9 +1,14 @@
{ pkgs, inputs, ... }:
{
# imports = [ ../accounts/default.nix ../git/default.nix ];
let
sessionVariables = {
DOOMLOCALDIR = "$HOME/.local/share/doomemacs";
DOOMPROFILELOADFILE = "$DOOMLOCALDIR/load.el";
};
in {
xdg.configFile.emacs.source = inputs.doom-emacs;
programs.emacs.enable = true;
home = {
inherit sessionVariables;
sessionPath = [ "$HOME/.config/emacs/bin" "$HOME/.emacs.d/bin" ];
packages = with pkgs; [
# Emacs dependencies