mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Adds service.emacs.exec to choose emacs binary to execute
The motivation of the change is that some forks (ie. Wilfred/remacs) choose not to use the emacs binary. Whereas it is perfectly possible to generate /bin/emacs in a drv, but I strongly believe it's cleaner to have a service parameter.
This commit is contained in:
parent
22be829197
commit
972ee0cb82
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