From 8f2fa61943a9d0dc8c56732faeb490d3e310d6cc Mon Sep 17 00:00:00 2001
From: Julien Moutinho <julm+julm-nix@sourcephile.fr>
Date: Sun, 12 Nov 2023 23:36:08 +0100
Subject: [PATCH] vim: use as defaultEditor

---
 nixos/profiles/system.nix | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nixos/profiles/system.nix b/nixos/profiles/system.nix
index f55844a..74cf522 100644
--- a/nixos/profiles/system.nix
+++ b/nixos/profiles/system.nix
@@ -13,6 +13,7 @@ with lib;
     man.enable = mkDefault true;
     nixos.enable = mkDefault false;
   };
+  programs.vim.defaultEditor = mkDefault true;
   environment.variables = {
     EDITOR = "vim";
     NIXPKGS_CONFIG = mkForce "";
-- 
2.47.2