mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 03:07:17 +00:00
26 lines
511 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|