Lots of changes. Whoops
This commit is contained in:
parent
3bd899bc13
commit
53962e3fd7
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sudo nix-channel --update
|
||||
pushd ~/.my_config/bin
|
||||
./apply-system.bash
|
||||
popd
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
nix-channel --update
|
||||
pushd ~/.my_config/bin/
|
||||
./apply-users.bash
|
||||
popd
|
||||
|
|
|
@ -42,6 +42,8 @@ in
|
|||
initialPassword = "password";
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ "root" "tsv" ];
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
|
||||
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
|
||||
export LESS_TERMCAP_me=$(tput sgr0)
|
||||
export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) # yellow on blue
|
||||
export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
|
||||
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white
|
||||
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
|
||||
export LESS_TERMCAP_mr=$(tput rev)
|
||||
export LESS_TERMCAP_mh=$(tput dim)
|
||||
export LESS_TERMCAP_ZN=$(tput ssubm)
|
||||
export LESS_TERMCAP_ZV=$(tput rsubm)
|
||||
export LESS_TERMCAP_ZO=$(tput ssupm)
|
||||
export LESS_TERMCAP_ZW=$(tput rsupm)
|
||||
export GROFF_NO_SGR=1 # For Konsole and Gnome-terminal
|
|
@ -1,21 +1,30 @@
|
|||
source ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
|
||||
HISTFILE=$XDG_CACHE_HOME/.bash_history
|
||||
HISTSIZE=10000
|
||||
HISTFILESIZE=20000
|
||||
PAGER="less -r"
|
||||
EDITOR="nvim"
|
||||
VISUAL="nvim"
|
||||
PATH=$HOME/bin:$HOME/.my_config/bin:$PATH
|
||||
shopt -s checkwinsize
|
||||
XDG_STATE_HOME=$HOME/.state
|
||||
|
||||
# Sane defaults for history
|
||||
HISTFILE=$XDG_STATE_HOME/.bash_history
|
||||
HISTSIZE=10000
|
||||
HISTFILESIZE=20000
|
||||
HISTCONTROL=ignoredups:erasedups # Ubuntu default is ignoreboth
|
||||
shopt -s histappend # In Ubuntu this is already set by default
|
||||
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
|
||||
|
||||
shopt -s histappend
|
||||
|
||||
alias weather="curl wttr.in/~Isle+of+Wight"
|
||||
alias pubip="curl -4 icanhazip.com"
|
||||
alias less="less -r"
|
||||
[[ -f ~/.LESS_TERMCAP ]] && . ~/.LESS_TERMCAP
|
||||
alias checkport="sudo netstat -tnlp | grep"
|
||||
alias dockerpurge="docker system prune --all --force --volumes"
|
||||
alias dockerkill="docker stop $(docker ps -a -q)"
|
||||
alias dockerkill="docker stop `docker ps -a -q`"
|
||||
alias vi="nvim"
|
||||
|
||||
# Prompt setup
|
||||
GIT_PS1_SHOWDIRTYSTATE=1
|
||||
|
|
|
@ -12,9 +12,10 @@
|
|||
autocrlf = input
|
||||
safecrlf = true
|
||||
excludesfile = $XDG_CONFIG_HOME/git/gitignore
|
||||
editor = vim
|
||||
editor = nvim
|
||||
[alias]
|
||||
aa = add -A
|
||||
ap = add --patch
|
||||
co = checkout
|
||||
cm = commit
|
||||
st = status
|
||||
|
|
|
@ -26,26 +26,35 @@
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vimPlugins.vim-plug
|
||||
firefox
|
||||
git-crypt
|
||||
gnupg
|
||||
_1password-gui
|
||||
anki
|
||||
awsebcli
|
||||
cachix
|
||||
calibre
|
||||
delta # Nice diffing pager for Git
|
||||
docker-compose
|
||||
firefox
|
||||
fzf
|
||||
git-crypt
|
||||
gitflow
|
||||
gnupg
|
||||
gimp
|
||||
heroku
|
||||
htop
|
||||
kmail
|
||||
korganizer
|
||||
libreoffice
|
||||
ripgrep
|
||||
ruby_3_1
|
||||
rubyPackages_3_1.dip
|
||||
rubyPackages_3_1.solargraph
|
||||
calibre
|
||||
thunderbird
|
||||
anki
|
||||
htop
|
||||
fzf
|
||||
gitflow
|
||||
gimp
|
||||
slack
|
||||
spotify
|
||||
thunderbird
|
||||
vimPlugins.vim-plug
|
||||
wine
|
||||
winetricks
|
||||
zoom-us
|
||||
];
|
||||
|
||||
|
||||
|
@ -56,7 +65,7 @@
|
|||
xdg.configFile."git/foxsoft_config".source = ./git/config_foxsoft;
|
||||
xdg.configFile."nvim/init.vim".source = ./nvim/init.vim;
|
||||
home.file.".ssh/config".source = ./ssh/config;
|
||||
|
||||
home.file.".LESS_TERMCAP".source = ./LESS_TERMCAP;
|
||||
services.syncthing.enable = true;
|
||||
services.syncthing.tray = {
|
||||
enable = true;
|
||||
|
|
|
@ -9,15 +9,16 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|||
\| endif
|
||||
|
||||
call plug#begin()
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'hrsh7th/nvim-cmp'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
Plug 'thoughtbot/vim-rspec'
|
||||
Plug 'tpope/vim-rails'
|
||||
Plug 'tpope/vim-endwise'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'hrsh7th/nvim-cmp'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
Plug 'thoughtbot/vim-rspec'
|
||||
Plug 'tpope/vim-rails'
|
||||
Plug 'tpope/vim-endwise'
|
||||
call plug#end()
|
||||
|
||||
set nocompatible
|
||||
|
@ -39,6 +40,7 @@ filetype plugin indent on
|
|||
set clipboard=unnamedplus
|
||||
set cursorline
|
||||
|
||||
:autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
colorscheme gruvbox
|
||||
|
||||
lua << EOF
|
||||
|
|
Loading…
Reference in New Issue