diff --git a/crates/00-system/crate.sh b/crates/00-system/crate.sh index 9ff0516..c5c5965 100644 --- a/crates/00-system/crate.sh +++ b/crates/00-system/crate.sh @@ -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 diff --git a/crates/00-system/files/sudoers b/crates/00-system/files/sudoers deleted file mode 100644 index fe82c3f..0000000 --- a/crates/00-system/files/sudoers +++ /dev/null @@ -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 diff --git a/crates/01-ssh/files/authorized_keys b/crates/01-ssh/files/authorized_keys index abd2989..b8f3fd6 100644 --- a/crates/01-ssh/files/authorized_keys +++ b/crates/01-ssh/files/authorized_keys @@ -1,2 +1 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCeNQfnbyyF3sht43vH5BcXDPca8nWu6bKPVGvAlWBOq4Av8ME2IQgwVe9nJ05r73ZY02/Vdqc01a8wyK5Hmw0XlPL0Cn6wc9QoiscOvq5lMUK87S2tr3EVLGkgl8o7nmVuWgLewyojiORjM02P1PZEiFhKPXVEQFxU0dFz9QtpAdm0u78Xn2HTukHpXSv44R3XDDMFZ3Ek/XRuS6J9dZVxGkgCLQhK8kpfbxuiYxaRC7MHgGlYuxjLuZ6P4i+V+SSSShfCGdm6U9bgeIAwftN6a8Pc9+OsBeZGSUrGjZjRlD35q0a7fbpoS8pKTfbwgf/ijYeu3JmAQUlY+H959mIpg4H9XOgRrKVJSYwx5/BGuhmWgVy6HIYpXCQfEbLE7QDmwC2C430KzAH6jCcrRNyurIU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uhmWgVy6HIYpXCQfEbLE7QDmwC2C430KzAH6jCcrRNyurIUCuO4iq9dwoQTzboMccOK79S2Z+1B5fYgS3BZgaiTUBSME2G2FriM6utgleiBnvFu/p7oH2I8ZHL/aVcSWAw0gbzsr7ADywAuiDNZk18c= raine@ryuk \ No newline at end of file diff --git a/crates/05-i3/crate.void.sh b/crates/05-i3/crate.void.sh new file mode 100644 index 0000000..1a7d575 --- /dev/null +++ b/crates/05-i3/crate.void.sh @@ -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 +} + diff --git a/crates/10-zsh/crate.void.sh b/crates/10-zsh/crate.void.sh new file mode 100644 index 0000000..19d54d1 --- /dev/null +++ b/crates/10-zsh/crate.void.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +super_apply() { + xbps-install -y zsh +} + +super_undo() { + xbps-remove -y zsh +} + diff --git a/crates/10-zsh/files/.zshrc b/crates/10-zsh/files/.zshrc index 6a11cad..6ae0dcd 100644 --- a/crates/10-zsh/files/.zshrc +++ b/crates/10-zsh/files/.zshrc @@ -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 \ No newline at end of file +# pnpm end diff --git a/crates/20-vim/crate.void.sh b/crates/20-vim/crate.void.sh new file mode 100644 index 0000000..8fab1a3 --- /dev/null +++ b/crates/20-vim/crate.void.sh @@ -0,0 +1,7 @@ +super_apply() { + xbps-install -y vim +} + +super_undo() { + echo "we never uninstall vim -_-" +} \ No newline at end of file diff --git a/crates/30-alacritty/crate.void.sh b/crates/30-alacritty/crate.void.sh new file mode 100644 index 0000000..4312e25 --- /dev/null +++ b/crates/30-alacritty/crate.void.sh @@ -0,0 +1,7 @@ +super_apply() { + xbps-install -y alacritty +} + +super_undo() { + xbps-remove -y alacritty +} \ No newline at end of file diff --git a/crates/40-git/crate.sh b/crates/40-git/crate.sh index 524f9bc..0579e1f 100644 --- a/crates/40-git/crate.sh +++ b/crates/40-git/crate.sh @@ -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 }