[nix] Just refer to the current emacs package via the service attribute

This commit is contained in:
Sebastian Schulze 2024-03-11 08:25:40 +01:00
parent f0235c0051
commit dba879c536
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ in
X-RestartIfChanged = "false";
};
Service = {
ExecStart = "${pkgs.bash}/bin/bash -l -c '${pkgs.emacs29-pgtk}/bin/emacs --fg-daemon=comacs'";
ExecStart = "${pkgs.bash}/bin/bash -l -c '${config.services.emacs.package}/bin/emacs --fg-daemon=comacs'";
Restart = "on-failure";
SuccessExitStatus = 15;
Type = "notify";
@ -518,7 +518,7 @@ in
X-RestartIfChanged = "false";
};
Service = {
ExecStart = "${pkgs.bash}/bin/bash -l -c '${pkgs.emacs29-pgtk}/bin/emacs --name Worklog --fg-daemon=workmacs'";
ExecStart = "${pkgs.bash}/bin/bash -l -c '${config.services.emacs.package}/bin/emacs --name Worklog --fg-daemon=workmacs'";
Restart = "on-failure";
SuccessExitStatus = 15;
Type = "notify";