dotfiles.nix/launchd.nix

21 lines
556 B
Nix

{ lib, config, pkgs, ... }:
{
launchd = {
enable = true;
agents.emacs = {
enable = true;
config = {
ProgramArguments = [ "${config.home.homeDirectory}/.nix-profile/bin/emacs" "--fg-daemon" ];
KeepAlive = true;
UserName = "${config.home.username}";
ProcessType = "Interactive";
RunAtLoad = true;
StandardOutPath = "${config.home.homeDirectory}/.emacs.d/daemon-stdout";
StandardErrorPath =
"${config.home.homeDirectory}/.emacs.d/daemon-stderr";
};
};
};
}