mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-01 06:31:04 +01:00
28 lines
557 B
Nix
28 lines
557 B
Nix
{ 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}
|
|
'';
|
|
}
|