mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 03:37:18 +00:00
18 lines
528 B
Nix
18 lines
528 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";
|
|
};
|
|
};
|
|
}
|
|
|