19 lines
415 B
Nix
19 lines
415 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 = true;
|
||
|
config = {
|
||
|
ProgramArguments =
|
||
|
[ "/etc/profiles/per-user/nathan/bin/emacs" "--daemon" ];
|
||
|
ProcessType = "Interactive";
|
||
|
RunAtLoad = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|