-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16fe781
commit ba9367b
Showing
5 changed files
with
65 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ lib, pkgs, ... }: | ||
|
||
{ | ||
nixpkgs.overlays = [ | ||
(self: super: rec { | ||
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // { | ||
outPath = "@emacs@"; | ||
}; | ||
emacsPackagesFor = _: | ||
lib.makeScope super.newScope (_: { emacsWithPackages = _: emacs; }); | ||
}) | ||
]; | ||
|
||
services.emacs = { enable = true; }; | ||
|
||
nmt.script = '' | ||
serviceFile=LaunchAgents/org.nix-community.home.emacs.plist | ||
assertFileExists "$serviceFile" | ||
assertFileContent "$serviceFile" ${./expected-agent.plist} | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ emacs-service-basic = ./basic.nix; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>KeepAlive</key> | ||
<dict> | ||
<key>Crashed</key> | ||
<true/> | ||
<key>SuccessfulExit</key> | ||
<false/> | ||
</dict> | ||
<key>Label</key> | ||
<string>org.nix-community.home.emacs</string> | ||
<key>ProgramArguments</key> | ||
<array> | ||
<string>@emacs@/bin/emacs</string> | ||
<string>--fg-daemon</string> | ||
</array> | ||
<key>RunAtLoad</key> | ||
<true/> | ||
</dict> | ||
</plist> |