2023-01-10 09:35:00 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.emacs = {
|
|
|
|
enable = true;
|
|
|
|
socketActivation.enable = true;
|
|
|
|
startWithUserSession = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: rec {
|
|
|
|
emacs = pkgs.writeShellScriptBin "dummy-emacs-28.0.5" "" // {
|
|
|
|
outPath = "@emacs@";
|
|
|
|
};
|
|
|
|
emacsPackagesFor = _:
|
2023-08-08 10:19:01 +00:00
|
|
|
lib.makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
2023-01-10 09:35:00 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContains \
|
|
|
|
home-files/.config/systemd/user/emacs.service \
|
|
|
|
"WantedBy=default.target"
|
|
|
|
'';
|
|
|
|
}
|