feat(emacs): Persist data and cache dirs

This will now persist the project list.
This commit is contained in:
Madeleine Sydney
2025-02-17 02:51:21 -07:00
parent 3ccbb5a012
commit 276cd7fbec

View File

@@ -61,10 +61,13 @@ let
emacsclient --alternate-editor=${emacsWrapper}/bin/emacs "$@" emacsclient --alternate-editor=${emacsWrapper}/bin/emacs "$@"
''; '';
in { in {
sydnix.impermanence.cache.directories = [ sydnix.impermanence.cache.directories =
# Impermanence expects the path to be relative to ~. # Impermanence expects the path to be relative to ~.
(lib.removePrefix config.home.homeDirectory straightBaseDir) map (lib.removePrefix config.home.homeDirectory) [
]; straightBaseDir
emacsCacheDir
emacsDataDir
];
# Set emacsclient as the default editor for the time being. # Set emacsclient as the default editor for the time being.
home.sessionVariables = home.sessionVariables =