feat: add void
This commit is contained in:
parent
6762a87b83
commit
c8610fb3fd
9 changed files with 46 additions and 16 deletions
|
@ -4,7 +4,6 @@ describe="Install stuff on the system!"
|
|||
scripts="@distro @self"
|
||||
|
||||
super_apply() {
|
||||
cp files/sudoers /etc/sudoers
|
||||
if [ -f /usr/lib/security/pam_wheel.so ] && ! grep -q "# pam_wheel.so added" /etc/pam.d/su; then
|
||||
echo "auth sufficient pam_wheel.so trust use_uid" > /etc/pam.d/su
|
||||
echo "# pam_wheel.so added" > /etc/pam.d/su
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
root ALL=(ALL:ALL) ALL
|
||||
%wheel ALL=(ALL:ALL) ALL
|
||||
%docker ALL=(ALL:ALL) ALL
|
||||
%sudo ALL=(ALL:ALL) ALL
|
||||
%root ALL=(ALL:ALL) NOPASSWD: ALL
|
||||
@includedir /etc/sudoers.d
|
|
@ -1,2 +1 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCeNQfnbyyF3sht43vH5BcXDPca8nWu6bKPVGvAlWBOq4Av8ME2IQgwVe9nJ05r73ZY02/Vdqc01a8wyK5Hmw0XlPL0Cn6wc9QoiscOvq5lMUK87S2tr3EVLGkgl8o7nmVuWgLewyojiORjM02P1PZEiFhKPXVEQFxU0dFz9QtpAdm0u78Xn2HTukHpXSv44R3XDDMFZ3Ek/XRuS6J9dZVxGkgCLQhK8kpfbxuiYxaRC7MHgGlYuxjLuZ6P4i+V+SSSShfCGdm6U9bgeIAwftN6a8Pc9+OsBeZGSUrGjZjRlD35q0a7fbpoS8pKTfbwgf/ijYeu3JmAQUlY+H959mIpg4H9XOgRrKVJSYwx5/BGuhmWgVy6HIYpXCQfEbLE7QDmwC2C430KzAH6jCcrRNyurIUCuO4iq9dwoQTzboMccOK79S2Z+1B5fYgS3BZgaiTUBSME2G2FriM6utgleiBnvFu/p7oH2I8ZHL/aVcSWAw0gbzsr7ADywAuiDNZk18c= raine@ryuk
|
||||
ssh-rsa AA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WAw0gbzsr7ADywAuiDNZk18c= raine@ryuk
|
12
crates/05-i3/crate.void.sh
Normal file
12
crates/05-i3/crate.void.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkgs="i3 i3lock i3status pulseaudio-devel brightnessctl xss-lock dex maim dmenu gnome-keyring"
|
||||
|
||||
super_apply() {
|
||||
xbps-install -y $pkgs
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
xbps-remove -y $pkgs
|
||||
}
|
||||
|
10
crates/10-zsh/crate.void.sh
Normal file
10
crates/10-zsh/crate.void.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
super_apply() {
|
||||
xbps-install -y zsh
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
xbps-remove -y zsh
|
||||
}
|
||||
|
|
@ -23,11 +23,14 @@ update_dotfiles() {
|
|||
}
|
||||
alias udf="update_dotfiles"
|
||||
|
||||
0file() { curl -F"file=@$1" {0} ; }
|
||||
0pb() { curl -F"file=@-;" https://envs.sh ; }
|
||||
0url() { curl -F"url=$1" https://envs.sh ; }
|
||||
0short() { curl -F"shorten=$1" https://envs.sh ; }
|
||||
|
||||
function share_cdn() {
|
||||
if ! [ -f "$1" ]; then
|
||||
echo "file needs to exist"
|
||||
return 1
|
||||
fi
|
||||
scp $1 keymaker:/usr/share/cdn/random/$2 > /dev/null
|
||||
echo "https://cdn.ixvd.net/random/${2:-$(basename $1)}"
|
||||
}
|
||||
|
||||
export PATH="${PATH}:/home/${USER}/.local/bin"
|
||||
|
||||
|
@ -37,4 +40,4 @@ case ":$PATH:" in
|
|||
*":$PNPM_HOME:"*) ;;
|
||||
*) export PATH="$PNPM_HOME:$PATH" ;;
|
||||
esac
|
||||
# pnpm end
|
||||
# pnpm end
|
||||
|
|
7
crates/20-vim/crate.void.sh
Normal file
7
crates/20-vim/crate.void.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
xbps-install -y vim
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
echo "we never uninstall vim -_-"
|
||||
}
|
7
crates/30-alacritty/crate.void.sh
Normal file
7
crates/30-alacritty/crate.void.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
xbps-install -y alacritty
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
xbps-remove -y alacritty
|
||||
}
|
|
@ -4,7 +4,6 @@ describe="Setup git"
|
|||
scripts="@distro @self"
|
||||
|
||||
apply() {
|
||||
git config --global user.signingkey 01E71F18AA4398E5
|
||||
git config --global user.name Raine
|
||||
git config --global user.email raine@ixvd.net
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue