Skip to content

Commit

Permalink
added vim config to hide mouse and locale for military time
Browse files Browse the repository at this point in the history
  • Loading branch information
FOSSadmin committed Sep 24, 2024
1 parent 5fb98c9 commit 67a7f52
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion nix/machines/_common/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,44 @@
tmux
usbutils
unixtools.nettools
vim
wget
((vim_configurable.override { }).customize {
name = "vim";
# Install plugins for example for syntax highlighting of nix files
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [
vim-nix
vim-lastplace
];
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_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
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 67a7f52

Please sign in to comment.