feat(wpcarro/marcus): Ensure EDITOR is set to Emacs

I should've done this awhile ago. I'm tired of having `nano` open in vterm
instances.

Change-Id: I784e4a7a3e8acba11105052b6c0fe1f6f9ac614b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4512
Reviewed-by: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2021-12-19 21:58:40 -05:00 committed by wpcarro
parent 3359f52806
commit 9b2259a60d
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,7 @@
{ pkgs, depot, ... }:
# TODO(wpcarro): See if it's possible to expose emacsclient on PATH, so that I
# don't need to depend on wpcarros-emacs and emacs in my NixOS configurations.
let
inherit (builtins) path;
inherit (depot.third_party.nixpkgs) emacsPackagesGen emacs27;

View file

@ -94,10 +94,17 @@ in {
light.enable = true;
};
environment.variables = {
EDITOR = "emacsclient";
ALTERNATE_EDITOR = "emacs -q -nw";
VISUAL = "emacsclient";
};
environment.systemPackages = with pkgs; [
alacritty
dig
direnv
emacs
fd
firefox
fzf