summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-07-16 06:08:19 +0200
committerAlan Pearce2022-07-16 06:08:19 +0200
commit36dde84e1594795d87802ce5a77066e2511f4a2e (patch)
treeff6e495411add6348a09fe9e03bc26a8c83da0e9
parent10e8d140b23632842db63b731e31321d7517c60a (diff)
downloadnixfiles-36dde84e1594795d87802ce5a77066e2511f4a2e.tar.lz
nixfiles-36dde84e1594795d87802ce5a77066e2511f4a2e.tar.zst
nixfiles-36dde84e1594795d87802ce5a77066e2511f4a2e.zip
server: use neovim as default editor
-rw-r--r--user/server.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/user/server.nix b/user/server.nix
index c71cf37c..056f8e59 100644
--- a/user/server.nix
+++ b/user/server.nix
@@ -1,4 +1,6 @@
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
+
+with lib;
 
 {
   imports = [
@@ -8,4 +10,5 @@
     ./settings/nixos.nix
     ./settings/zsh.nix
   ];
+  home.sessionVariables.EDITOR = "${getBin config.programs.neovim.finalPackage}/bin/neovim";
 }