System/home-manager/darwin/programs/emacs.nix

19 lines
416 B
Nix

{ config, lib, pkgs, inputs, ... }:
{
imports = [ ../../common/programs/emacs.nix ];
config = lib.mkIf config.nathan.programs.emacs.enable {
# Setup service
launchd.agents.emacs = {
enable = false;
config = {
ProgramArguments =
[ "/etc/profiles/per-user/nathan/bin/emacs" "--daemon" ];
ProcessType = "Interactive";
RunAtLoad = true;
};
};
};
}