From 0762150bca778c9bd0c485bb99467cc17cf1cd22 Mon Sep 17 00:00:00 2001 From: Fredrik Robertsen Date: Tue, 7 Apr 2026 13:20:40 +0200 Subject: [PATCH] base: make vim default editor --- modules/base.nix | 10 ++++++++-- modules/dev/default.nix | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/base.nix b/modules/base.nix index 407bf27..29d1b86 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -1,4 +1,4 @@ -{ config, pkgs, inputs, ... }: +{ config, pkgs, inputs, lib, ... }: { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -21,9 +21,15 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment = { - systemPackages = with pkgs; [ vim ripgrep xdg-utils webcord ]; + systemPackages = with pkgs; [ + vim + ripgrep + xdg-utils + webcord element-desktop + ]; shells = with pkgs; [ bash ]; + sessionVariables.EDITOR = lib.mkDefault "vim"; }; hardware.bluetooth.enable = true; diff --git a/modules/dev/default.nix b/modules/dev/default.nix index 9e67c96..814997e 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { imports = [ ./direnv.nix @@ -34,7 +34,7 @@ monocraft ]; - environment.sessionVariables.EDITOR = "hx"; + environment.sessionVariables.EDITOR = lib.mkForce "hx"; environment.shells = with pkgs; [ nushell bash ]; users.users.fredrikr.shell = pkgs.nushell;