Lots of changes. Whoops

This commit is contained in:
Trevor Vallender 2023-02-17 11:51:36 +00:00
parent 3bd899bc13
commit 53962e3fd7
8 changed files with 67 additions and 26 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo nix-channel --update sudo nix-channel --update
pushd ~/.my_config/bin
./apply-system.bash ./apply-system.bash
popd

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
nix-channel --update nix-channel --update
pushd ~/.my_config/bin/
./apply-users.bash ./apply-users.bash
popd

View File

@ -42,6 +42,8 @@ in
initialPassword = "password"; initialPassword = "password";
}; };
nix.settings.trusted-users = [ "root" "tsv" ];
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;

14
users/tsv/LESS_TERMCAP Normal file
View File

@ -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

View File

@ -1,21 +1,30 @@
source ~/.nix-profile/etc/profile.d/hm-session-vars.sh source ~/.nix-profile/etc/profile.d/hm-session-vars.sh
HISTFILE=$XDG_CACHE_HOME/.bash_history
HISTSIZE=10000
HISTFILESIZE=20000
PAGER="less -r" PAGER="less -r"
EDITOR="nvim" EDITOR="nvim"
VISUAL="nvim" VISUAL="nvim"
PATH=$HOME/bin:$HOME/.my_config/bin:$PATH PATH=$HOME/bin:$HOME/.my_config/bin:$PATH
shopt -s checkwinsize 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 shopt -s histappend
alias weather="curl wttr.in/~Isle+of+Wight" alias weather="curl wttr.in/~Isle+of+Wight"
alias pubip="curl -4 icanhazip.com" alias pubip="curl -4 icanhazip.com"
alias less="less -r" alias less="less -r"
[[ -f ~/.LESS_TERMCAP ]] && . ~/.LESS_TERMCAP
alias checkport="sudo netstat -tnlp | grep" alias checkport="sudo netstat -tnlp | grep"
alias dockerpurge="docker system prune --all --force --volumes" 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 # Prompt setup
GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWDIRTYSTATE=1

View File

@ -12,9 +12,10 @@
autocrlf = input autocrlf = input
safecrlf = true safecrlf = true
excludesfile = $XDG_CONFIG_HOME/git/gitignore excludesfile = $XDG_CONFIG_HOME/git/gitignore
editor = vim editor = nvim
[alias] [alias]
aa = add -A aa = add -A
ap = add --patch
co = checkout co = checkout
cm = commit cm = commit
st = status st = status

View File

@ -26,26 +26,35 @@
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
vimPlugins.vim-plug _1password-gui
firefox anki
git-crypt awsebcli
gnupg cachix
calibre
delta # Nice diffing pager for Git delta # Nice diffing pager for Git
docker-compose docker-compose
firefox
fzf
git-crypt
gitflow
gnupg
gimp
heroku
htop
kmail
korganizer
libreoffice
ripgrep
ruby_3_1 ruby_3_1
rubyPackages_3_1.dip rubyPackages_3_1.dip
rubyPackages_3_1.solargraph rubyPackages_3_1.solargraph
calibre
thunderbird
anki
htop
fzf
gitflow
gimp
slack slack
spotify spotify
thunderbird
vimPlugins.vim-plug
wine wine
winetricks winetricks
zoom-us
]; ];
@ -56,7 +65,7 @@
xdg.configFile."git/foxsoft_config".source = ./git/config_foxsoft; xdg.configFile."git/foxsoft_config".source = ./git/config_foxsoft;
xdg.configFile."nvim/init.vim".source = ./nvim/init.vim; xdg.configFile."nvim/init.vim".source = ./nvim/init.vim;
home.file.".ssh/config".source = ./ssh/config; home.file.".ssh/config".source = ./ssh/config;
home.file.".LESS_TERMCAP".source = ./LESS_TERMCAP;
services.syncthing.enable = true; services.syncthing.enable = true;
services.syncthing.tray = { services.syncthing.tray = {
enable = true; enable = true;

View File

@ -9,6 +9,7 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| endif \| endif
call plug#begin() call plug#begin()
Plug 'nvim-lua/plenary.nvim'
Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
@ -39,6 +40,7 @@ filetype plugin indent on
set clipboard=unnamedplus set clipboard=unnamedplus
set cursorline set cursorline
:autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
colorscheme gruvbox colorscheme gruvbox
lua << EOF lua << EOF