summaryrefslogtreecommitdiff
path: root/modules/services/emacs.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /modules/services/emacs.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'modules/services/emacs.nix')
-rw-r--r--modules/services/emacs.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/services/emacs.nix b/modules/services/emacs.nix
index 88b5c8a..ec98950 100644
--- a/modules/services/emacs.nix
+++ b/modules/services/emacs.nix
@@ -12,20 +12,20 @@ in {
enable = mkOption {
type = types.bool;
default = false;
- description = lib.mdDoc "Whether to enable the Emacs Daemon.";
+ description = "Whether to enable the Emacs Daemon.";
};
package = mkOption {
type = types.path;
default = pkgs.emacs;
- description = lib.mdDoc "This option specifies the emacs package to use.";
+ description = "This option specifies the emacs package to use.";
};
additionalPath = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "/Users/my_user_name" ];
- description = lib.mdDoc ''
+ description = ''
This option specifies additional PATH that the emacs daemon would have.
Typically if you have binaries in your home directory that is what you would add your home path here.
One caveat is that there won't be shell variable expansion, so you can't use $HOME for example
@@ -35,7 +35,7 @@ in {
exec = mkOption {
type = types.str;
default = "emacs";
- description = lib.mdDoc "Emacs command/binary to execute.";
+ description = "Emacs command/binary to execute.";
};
};
};
@@ -44,9 +44,11 @@ in {
launchd.user.agents.emacs = {
path = cfg.additionalPath ++ [ config.environment.systemPath ];
- serviceConfig.ProgramArguments =
- [ "${cfg.package}/bin/${cfg.exec}" "--fg-daemon" ];
- serviceConfig.RunAtLoad = true;
+ serviceConfig = {
+ ProgramArguments = [ "${cfg.package}/bin/${cfg.exec}" "--fg-daemon" ];
+ RunAtLoad = true;
+ KeepAlive = true;
+ };
};
};