dotfiles.nix/home-manager/profiles/willem/darwin/launchd.nix
willemml a7c69788b0
Fixes TeX module for Emacs
Adds support for changing the org and tex config file path. Also makes
extra packages needed by org and tex customizable outside of the
module definition.

Additionally this makes the launchd service for Emacs on darwin use
the finalPackge output instead of package. This improves compatibility
with existing home-manager modules as well as my additions for
controlling whether or not org and tex are configured.
2023-11-08 14:54:48 -08:00

26 lines
511 B
Nix

{
lib,
config,
pkgs,
...
}: let
logFile = name: "${config.home.homeDirectory}/Library/Logs/${name}.log";
in {
launchd = {
enable = true;
agents.emacs = {
enable = true;
config = {
ProgramArguments = [
"${config.programs.emacs.finalPackage}/bin/emacs"
"--fg-daemon"
];
KeepAlive = true;
ProcessType = "Interactive";
StandardOutPath = logFile "emacs";
StandardErrorPath = logFile "emacs";
};
};
};
}