mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
21 lines
533 B
Nix
21 lines
533 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
launchd.agents.emacs = lib.mkIf pkgs.stdenv.isDarwin {
|
|
enable = true;
|
|
config = {
|
|
ProgramArguments = [
|
|
"${config.programs.emacs.finalPackage}/bin/emacs"
|
|
"--fg-daemon"
|
|
];
|
|
KeepAlive = true;
|
|
UserName = "${config.home.username}";
|
|
ProcessType = "Adaptive";
|
|
StandardOutPath = "${config.home.homeDirectory}/Library/Logs/emacs-stdout.log";
|
|
StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/emacs-stderr.log";
|
|
};
|
|
};
|
|
}
|