Skip to content

Commit

Permalink
Merge pull request socallinuxexpo#774 from socallinuxexpo/issue694
Browse files Browse the repository at this point in the history
added vim config to hide mouse and locale for military time
  • Loading branch information
sarcasticadmin authored Sep 27, 2024
2 parents 53db08d + 56d9991 commit 25abe86
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion nix/machines/_common/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,35 @@
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
environment.variables = {
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;
Expand Down

0 comments on commit 25abe86

Please sign in to comment.