From 5a943eb2cd4db62632633e7513994aaddb034bc2 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Dec 2021 21:02:24 -0500 Subject: feat(wpcarro/diogenes): Set EDITOR I should be doing most of my remote file editing using Emacs and Tramp, but sometimes a CLI command triggers the EDITOR, which is `nano` by default. I can control `vim` better than I can control `nano` within a vterm session, so I'm trying this configuration for now. Change-Id: I2023beadfe05a957bc5ddd6e6793a891521f301d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4599 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/nixos/diogenes/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'users/wpcarro/nixos/diogenes') diff --git a/users/wpcarro/nixos/diogenes/default.nix b/users/wpcarro/nixos/diogenes/default.nix index f0c8d95cb4..2a3df2e3f5 100644 --- a/users/wpcarro/nixos/diogenes/default.nix +++ b/users/wpcarro/nixos/diogenes/default.nix @@ -60,6 +60,13 @@ in { }; }; + # I won't have an Emacs server running on diogenes, and I'll likely be in an + # SSH session from within vterm. As such, Vim is one of the few editors that I + # tolerably navigate this way. + environment.variables = { + EDITOR = "vim"; + }; + environment.systemPackages = wpcarro.common.shell-utils; services = { -- cgit 1.4.1