cleanup
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
# Deploy
|
||||||
nix run github:nix-community/nixos-anywhere -- \
|
nix run github:nix-community/nixos-anywhere -- \
|
||||||
--generate-hardware-config nixos-generate-config ./hosts/s1901/hardware-configuration.nix \
|
--generate-hardware-config nixos-generate-config ./hosts/[host]/hardware-configuration.nix \
|
||||||
--flake .#s1901 \
|
--flake .#[host] \
|
||||||
root@192.168.1.50
|
root@[address]
|
||||||
|
|||||||
@@ -79,10 +79,10 @@
|
|||||||
plugin = nerdcommenter;
|
plugin = nerdcommenter;
|
||||||
config = toLuaFile ./plugins/nerdcommenter.lua;
|
config = toLuaFile ./plugins/nerdcommenter.lua;
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
plugin = nvim-tree-lua;
|
# plugin = nvim-tree-lua;
|
||||||
config = toLuaFile ./plugins/nvimtree.lua;
|
# config = toLuaFile ./plugins/nvimtree.lua;
|
||||||
}
|
# }
|
||||||
# {
|
# {
|
||||||
# plugin = vim-airline;
|
# plugin = vim-airline;
|
||||||
# config = toLuaFile ./plugins/airline.lua;
|
# config = toLuaFile ./plugins/airline.lua;
|
||||||
|
|||||||
+1
-37
@@ -16,17 +16,12 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|||||||
|
|
||||||
bindkey '^ ' autosuggest-accept
|
bindkey '^ ' autosuggest-accept
|
||||||
|
|
||||||
# ==== holy fuck aliases ====
|
|
||||||
|
|
||||||
# make sure i get the right version of python
|
# make sure i get the right version of python
|
||||||
alias python='python3'
|
alias python='python3'
|
||||||
|
|
||||||
alias pls='sudo'
|
alias pls='sudo'
|
||||||
alias please='sudo'
|
alias please='sudo'
|
||||||
|
|
||||||
# fuck
|
|
||||||
alias fuck="sudo !!"
|
|
||||||
|
|
||||||
# neovim
|
# neovim
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
@@ -34,30 +29,13 @@ alias n="nvim"
|
|||||||
alias neovim='nvim'
|
alias neovim='nvim'
|
||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
|
|
||||||
# duplicate current alacritty unit
|
|
||||||
alias dupe='setsid alacritty --working-directory "$(pwd)" > /dev/null'
|
|
||||||
|
|
||||||
# alias so i can copy stuff to my clipboard from my terminal
|
|
||||||
# example:
|
|
||||||
#$ pwd | clip
|
|
||||||
alias clip='perl -p -e "chomp if eof" | xclip -in -sel clip'
|
|
||||||
alias pwdc='pwd | clip | echo "directory clipped"'
|
|
||||||
|
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
|
|
||||||
## Curl Aliases for easy info
|
|
||||||
alias myip="curl https://ipecho.net/plain; echo"
|
|
||||||
alias pq="ping google.com -c 5"
|
|
||||||
|
|
||||||
alias ..="cd ../"
|
alias ..="cd ../"
|
||||||
alias ../="cd ../"
|
alias ../="cd ../"
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
alias .4="cd ../../.."
|
alias .4="cd ../../.."
|
||||||
|
|
||||||
# replacing ls with exa & lsd
|
|
||||||
# hrr drr why do you use lsd AND exa?
|
|
||||||
# because lsd has icons but exa is better with everything else. smh.
|
|
||||||
|
|
||||||
# Lolcats!!
|
# Lolcats!!
|
||||||
alias neofetch="neofetch | lolcat"
|
alias neofetch="neofetch | lolcat"
|
||||||
|
|
||||||
@@ -65,18 +43,9 @@ alias neofetch="neofetch | lolcat"
|
|||||||
alias untar="tar -zxvf"
|
alias untar="tar -zxvf"
|
||||||
alias mktar="tar -cvzf"
|
alias mktar="tar -cvzf"
|
||||||
|
|
||||||
# by default, put zathura windows in new process
|
# make ncdu run fast
|
||||||
# alias zathura="sh /home/synchronous/.scripts/zathura/zathura_conditional.sh"
|
|
||||||
# alias exclude-zathura="pwd >> /home/synchronous/.scripts/zathura/excluded;echo 'done'"
|
|
||||||
|
|
||||||
# make ncdu run fast wow
|
|
||||||
alias ncdu="ncdu -rx"
|
alias ncdu="ncdu -rx"
|
||||||
|
|
||||||
alias ndwc="nmcli device wifi connect"
|
|
||||||
alias ndwl="nmcli device wifi list"
|
|
||||||
alias ndc="nmcli device disconnect wlan0"
|
|
||||||
alias wt="systemctl restart NetworkManager"
|
|
||||||
alias syncthing="firefox localhost:8384"
|
|
||||||
alias htop="btop" # of course
|
alias htop="btop" # of course
|
||||||
alias top="btop" # of course
|
alias top="btop" # of course
|
||||||
|
|
||||||
@@ -128,11 +97,6 @@ a.fo() {
|
|||||||
firefox `pwd`
|
firefox `pwd`
|
||||||
}
|
}
|
||||||
|
|
||||||
a.dnsenum() {
|
|
||||||
dnsenum "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------- fzf configuration
|
# ------------------- fzf configuration
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
export FZF_DEFAULT_COMMAND='fd --type f'
|
export FZF_DEFAULT_COMMAND='fd --type f'
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ mkdir -p "/var/lib/lxc/${CONTAINER}/rootfs/etc"
|
|||||||
rm -f "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
rm -f "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
||||||
echo "nameserver 8.8.8.8" > "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
echo "nameserver 8.8.8.8" > "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
||||||
|
|
||||||
# assign static IP via LXC config (host-side, always works)
|
# assign static IP via LXC config (host-side, always works hopefully)
|
||||||
cat >> "/var/lib/lxc/${CONTAINER}/config" <<EOF
|
cat >> "/var/lib/lxc/${CONTAINER}/config" <<EOF
|
||||||
lxc.net.0.ipv4.address = ${CONTAINER_IP}/24
|
lxc.net.0.ipv4.address = ${CONTAINER_IP}/24
|
||||||
lxc.net.0.ipv4.gateway = 10.100.0.1
|
lxc.net.0.ipv4.gateway = 10.100.0.1
|
||||||
@@ -43,7 +43,7 @@ EOF
|
|||||||
lxc-start -n "$CONTAINER"
|
lxc-start -n "$CONTAINER"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
# install SSH + VSCode Remote prerequisites
|
# install SSH + various prerequisites...
|
||||||
lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c "
|
lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c "
|
||||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
@@ -53,7 +53,7 @@ lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c "
|
|||||||
tar gzip \
|
tar gzip \
|
||||||
procps \
|
procps \
|
||||||
locales
|
locales
|
||||||
# generate a UTF-8 locale (VSCode expects this)
|
# generate a UTF-8 locale
|
||||||
sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
|
sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
# SSH config
|
# SSH config
|
||||||
|
|||||||
Reference in New Issue
Block a user