Nvim : Partially move config to nix.
This commit is contained in:
parent
99d8c73c16
commit
5f300e4c0e
|
@ -1,31 +1,7 @@
|
|||
# Set umask.
|
||||
umask 077
|
||||
|
||||
# add all links in ~/app/bin/
|
||||
# Add all links in ~/app/bin/
|
||||
export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${PATH}
|
||||
|
||||
# specify locale.
|
||||
#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.
|
||||
# Bash modules.
|
||||
export BASH_MODULE_PATH="${HOME}/.config/bash/module"
|
||||
|
||||
# Docker config.
|
||||
|
|
|
@ -19,12 +19,14 @@
|
|||
./module/common/Bootloader.nix
|
||||
./module/common/Distrobox.nix
|
||||
./module/common/Dotfiles.nix
|
||||
./module/common/Environment.nix
|
||||
./module/common/Filesystem.nix
|
||||
./module/common/Firefox.nix
|
||||
./module/common/Firewall.nix
|
||||
./module/common/Git.nix
|
||||
./module/common/Kernel.nix
|
||||
./module/common/Locale.nix
|
||||
./module/common/Neovim.nix
|
||||
./module/common/Network.nix
|
||||
./module/common/Nix.nix
|
||||
./module/common/Package.nix
|
||||
|
|
7
.config/linux/system/module/common/Environment.nix
Normal file
7
.config/linux/system/module/common/Environment.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ environment, ... }: {
|
||||
security.loginDefs.settings.UMASK = "077";
|
||||
environment.values = {
|
||||
EDITOR = "nvim";
|
||||
MANPAGER = "nvim +Man!";
|
||||
};
|
||||
}
|
5
.config/linux/system/module/common/Neovim.nix
Normal file
5
.config/linux/system/module/common/Neovim.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
|
@ -20,7 +20,6 @@
|
|||
lsof
|
||||
ltex-ls
|
||||
ncdu
|
||||
neovim
|
||||
nmap
|
||||
parallel
|
||||
parted
|
||||
|
|
Reference in a new issue