about summary refs log tree commit diff
path: root/users/wpcarro/nixos
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-25T02·02-0500
committerwpcarro <wpcarro@gmail.com>2021-12-25T16·07+0000
commit5a943eb2cd4db62632633e7513994aaddb034bc2 (patch)
tree3e1ed368f1582c010ae5b5eeb2aa9d8b39b9549c /users/wpcarro/nixos
parent858dd2208f47bcc42e51756c9d278fadd597f922 (diff)
feat(wpcarro/diogenes): Set EDITOR r/3393
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 <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/nixos')
-rw-r--r--users/wpcarro/nixos/diogenes/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/diogenes/default.nix b/users/wpcarro/nixos/diogenes/default.nix
index f0c8d95cb42b..2a3df2e3f52d 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 = {