all repos — nixfiles @ 36dde84e1594795d87802ce5a77066e2511f4a2e

System and user configuration, managed by nix and home-manager

server: use neovim as default editor
Alan Pearce alan@alanpearce.eu
Sat, 16 Jul 2022 06:08:19 +0200
commit

36dde84e1594795d87802ce5a77066e2511f4a2e

parent

10e8d140b23632842db63b731e31321d7517c60a

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M user/server.nixuser/server.nix
@@ -1,4 +1,6 @@-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
+
+with lib;
 
 {
   imports = [
@@ -8,4 +10,5 @@ ./settings/nix.nix     ./settings/nixos.nix
     ./settings/zsh.nix
   ];
+  home.sessionVariables.EDITOR = "${getBin config.programs.neovim.finalPackage}/bin/neovim";
 }