mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
24 lines
495 B
Nix
24 lines
495 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
# Use `cat` instead of `echo` to prevent arguments from being
|
|
# interpreted as an option.
|
|
emacs = pkgs.writeShellScriptBin "emacsclient"
|
|
''${pkgs.coreutils}/bin/cat <<< "$*"'';
|
|
})
|
|
];
|
|
|
|
services.emacs = {
|
|
defaultEditor = true;
|
|
enable = true;
|
|
};
|
|
|
|
nmt.script = "source ${
|
|
pkgs.substituteAll {
|
|
inherit (pkgs) coreutils;
|
|
src = ./emacs-default-editor.sh;
|
|
}
|
|
}";
|
|
}
|