Add .chezmoi.toml

Update .bashrc
Add .scripts/fuck_nvidia.sh
Change attributes of .config/foot/foot.ini
Change attributes of .scripts/install_base.sh
This commit is contained in:
V 2022-11-25 20:42:32 +04:00
parent 877afba75f
commit fac0c8b79c
5 changed files with 20 additions and 2 deletions

4
.chezmoi.toml.tmpl Normal file
View File

@ -0,0 +1,4 @@
[git]
autoCommit = true
autoPush = true

View File

@ -4,6 +4,7 @@
export EDITOR=nvim;
export VISUAL=nvim;
alias cfg=chezmoi
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

View File

@ -0,0 +1,11 @@
#!/bin/sh
paru --needed --noconfirm -Syu nvidia nvidia-utils sway-nvidia # nvidia-vaapi-driver-git #lib32-nvidia-utils-beta
BLCONF=$(find /boot/loader/entries/ -type f -name '*.conf' -print0 | xargs -0 grep -l "arch")
echo "LOADER: ${BLCONF}"
if grep -R "nvidia_drm.modeset" $BLCONF > /dev/null
then
echo "modeset already set"
else
sudo sed -ie 's/^options.*$/& nvidia_drm.modeset=1/g' ${BLCONF}
fi

View File

@ -4,7 +4,7 @@
# - Seriously, don't do this, it's insecure!
# Pacman packages
sudo pacman --needed --noconfirm -Syu base-devel htop ranger git screen ncdu neovim pipewire sway swaybg xorg-server xorg-xwayland chezmoi foot polkit openssh
sudo pacman --needed --noconfirm -Syu base-devel htop ranger git screen ncdu neovim pipewire sway swaybg xorg-server xorg-xwayland chezmoi foot polkit openssh firefox-developer-edition
# Install Paru
if pacman -Qs paru > /dev/null ; then
@ -18,7 +18,7 @@ else
fi
# AUR Packages
paru --needed --noconfirm -Syu paru-bin ttf-cascadia-code
paru --needed --noconfirm -Syu paru-bin ttf-cascadia-code
# Chezmoi apply dotfiles
chezmoi init --apply https://inex.dev/v/dotfiles.git
@ -31,3 +31,5 @@ else
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
fi
sudo usermod -aG wheel,input,audio,video,lp v