Nvim : Partially move config to nix.

This commit is contained in:
Dmitry Voronin 2024-02-24 20:25:27 +03:00
parent 99d8c73c16
commit 5f300e4c0e
5 changed files with 16 additions and 27 deletions

View file

@ -1,31 +1,7 @@
# Set umask. # Add all links in ~/app/bin/
umask 077
# add all links in ~/app/bin/
export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${PATH} export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${PATH}
# specify locale. # Bash modules.
#export LC_ALL=C
# export LANGUAGE="en_US.UTF-8"
# specify editor.
export EDITOR=nvim
# specify man page viewer.
export MANPAGER="nvim +Man!"
# specify android sdk root.
# export ANDROID_SDK_ROOT="$HOME/.android/sdk"
# specify java path.
# export JAVA_HOME="${HOME}/app/java/x64/latest"
# specify tex paths.
# export TEXMFVAR="${HOME}/app/tex/data/var"
# export TEXMFCONFIG="${HOME}/app/tex/data/config"
# export TEXMFLOCAL="${HOME}/app/tex/data/local"
# Dotfiles exports.
export BASH_MODULE_PATH="${HOME}/.config/bash/module" export BASH_MODULE_PATH="${HOME}/.config/bash/module"
# Docker config. # Docker config.

View file

@ -19,12 +19,14 @@
./module/common/Bootloader.nix ./module/common/Bootloader.nix
./module/common/Distrobox.nix ./module/common/Distrobox.nix
./module/common/Dotfiles.nix ./module/common/Dotfiles.nix
./module/common/Environment.nix
./module/common/Filesystem.nix ./module/common/Filesystem.nix
./module/common/Firefox.nix ./module/common/Firefox.nix
./module/common/Firewall.nix ./module/common/Firewall.nix
./module/common/Git.nix ./module/common/Git.nix
./module/common/Kernel.nix ./module/common/Kernel.nix
./module/common/Locale.nix ./module/common/Locale.nix
./module/common/Neovim.nix
./module/common/Network.nix ./module/common/Network.nix
./module/common/Nix.nix ./module/common/Nix.nix
./module/common/Package.nix ./module/common/Package.nix

View file

@ -0,0 +1,7 @@
{ environment, ... }: {
security.loginDefs.settings.UMASK = "077";
environment.values = {
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
};
}

View file

@ -0,0 +1,5 @@
{ ... }: {
programs.neovim = {
enable = true;
};
}

View file

@ -20,7 +20,6 @@
lsof lsof
ltex-ls ltex-ls
ncdu ncdu
neovim
nmap nmap
parallel parallel
parted parted