mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
20 lines
557 B
Nix
20 lines
557 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
{
|
|
launchd = lib.mkIf pkgs.stdenv.isDarwin {
|
|
enable = true;
|
|
|
|
agents.emacs = {
|
|
enable = true;
|
|
config = {
|
|
ProgramArguments = [ "${config.home.homeDirectory}/.nix-profile/bin/emacs" "--fg-daemon" ];
|
|
KeepAlive = true;
|
|
UserName = "${config.home.username}";
|
|
ProcessType = "Adaptive";
|
|
StandardOutPath = "${config.home.homeDirectory}/.emacs.d/daemon-stdout";
|
|
StandardErrorPath =
|
|
"${config.home.homeDirectory}/.emacs.d/daemon-stderr";
|
|
};
|
|
};
|
|
};
|
|
}
|