mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
Merge pull request #38 from peel/master
Adds service.emacs.exec to choose emacs binary to execute
This commit is contained in:
commit
fcef55a53a
1 changed files with 7 additions and 2 deletions
|
@ -24,6 +24,11 @@ in
|
|||
description = "This option specifies the emacs package to use.";
|
||||
};
|
||||
|
||||
exec = mkOption {
|
||||
type = types.string;
|
||||
default = "emacs";
|
||||
description = "Emacs command/binary to exeucte";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -31,11 +36,11 @@ in
|
|||
|
||||
launchd.user.agents.emacs = {
|
||||
serviceConfig.ProgramArguments = [
|
||||
"${cfg.package}/bin/emacs"
|
||||
"${cfg.package}/bin/${cfg.exec}"
|
||||
"--daemon"
|
||||
];
|
||||
serviceConfig.RunAtLoad = true;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue