From 56d9991e3615de849ca6fb6994a1bebac70235a8 Mon Sep 17 00:00:00 2001 From: FOSSadmin Date: Sun, 22 Sep 2024 13:18:10 -0700 Subject: [PATCH] added vim config to hide mouse and locale for military time --- nix/machines/_common/base.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nix/machines/_common/base.nix b/nix/machines/_common/base.nix index 5320e0ee..88a46ce0 100644 --- a/nix/machines/_common/base.nix +++ b/nix/machines/_common/base.nix @@ -36,8 +36,23 @@ tmux usbutils unixtools.nettools - vim wget + ((vim_configurable.override { }).customize { + name = "vim"; + # Install plugins for syntax highlighting of nix files + vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { + start = [ + vim-nix + ]; + opt = [ ]; + }; + vimrcConfig.customRC = '' + " Turn on syntax highlighting by default + syntax on + " Disable mouse + set mouse-=a + ''; + }) ]; # Purge nano from being the default @@ -45,6 +60,11 @@ EDITOR = "vim"; }; + # set 24h military time + i18n.extraLocaleSettings = { + LC_TIME = "C.UTF-8"; + }; + # Force noXlibs per recommendation in microVMs # ref: https://github.com/astro/microvm.nix/issues/167 environment.noXlibs = false;