1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/services/emacs/emacs-socket-and-startWithUserSession.nix

26 lines
546 B
Nix
Raw Normal View History

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