1
0
Fork 0
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:
Daiderd Jordan 2017-07-06 21:14:06 +02:00 committed by GitHub
commit fcef55a53a

View file

@ -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;
};
};
}
}