2eafb8192e
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
27 lines
553 B
Nix
27 lines
553 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
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 = _:
|
|
makeScope super.newScope (_: { emacsWithPackages = _: emacs; });
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileContains \
|
|
home-files/.config/systemd/user/emacs.service \
|
|
"WantedBy=default.target"
|
|
'';
|
|
}
|