From 6522b37254797e3ffb2e15fcaac238b27110c88a Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sun, 19 Feb 2023 17:32:01 +0100 Subject: modules: nixos: environment: set default editor to vim --- modules/nixos/personal/environment.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/nixos/personal/environment.nix b/modules/nixos/personal/environment.nix index 5c84037..a3b9fa0 100644 --- a/modules/nixos/personal/environment.nix +++ b/modules/nixos/personal/environment.nix @@ -9,12 +9,10 @@ in { config = lib.mkIf cfg.enable (lib.mkMerge [ { - environment.systemPackages = with pkgs; [ - vim - gitMinimal - busybox - coreutils - ]; + environment = { + systemPackages = with pkgs; [ vim gitMinimal busybox coreutils ]; + variables.EDITOR = "vim"; + }; } (lib.mkIf cfg.locale.enable { time.timeZone = "Europe/Paris"; -- cgit v1.2.3