dotfiles.nix/home/darwin/launchd.nix
2023-02-05 14:43:06 -08:00

23 lines
581 B
Nix

{ lib, config, pkgs, ... }:
{
launchd = lib.mkIf pkgs.stdenv.isDarwin {
enable = true;
agents.emacs = {
enable = true;
config = {
ProgramArguments = [
"${config.programs.emacs.finalPackage}/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";
};
};
};
}