1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/services/emacs/linux/emacs-socket-and-startWithUserSession.nix
Austin Horstman c283a23ef6 tests/emacs: reorganize darwin and linux
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

28 lines
572 B
Nix

{ 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 =
_:
lib.makeScope super.newScope (_: {
emacsWithPackages = _: emacs;
});
})
];
nmt.script = ''
assertFileContains \
home-files/.config/systemd/user/emacs.service \
"WantedBy=default.target"
'';
}