feats for pop
This commit is contained in:
parent
ba52a96a60
commit
1573398e8d
7 changed files with 55 additions and 7 deletions
|
@ -4,6 +4,7 @@ describe="setup ssh"
|
|||
|
||||
apply() {
|
||||
[ -e "$HOME/.ssh/authorized_keys" ] || ln files/authorized_keys $HOME/.ssh/authorized_keys
|
||||
[ -e "$HOME/.ssh/config" ] || ln files/config $HOME/.ssh/config
|
||||
if ! [ -f "$HOME/.ssh/id_rsa" ]; then
|
||||
echo "Creating new ssh key for this device..."
|
||||
ssh-keygen -f $HOME/.ssh/id_rsa -p "" -q
|
||||
|
|
22
crates/01-ssh/files/config
Normal file
22
crates/01-ssh/files/config
Normal file
|
@ -0,0 +1,22 @@
|
|||
## neb servers
|
||||
|
||||
# hydrogen red helix
|
||||
Host H
|
||||
Hostname hydrogen.red.helix.saluco.nl
|
||||
|
||||
# argon red helix
|
||||
Host A
|
||||
Hostname argon.red.helix.saluco.nl
|
||||
|
||||
# iron red sphere
|
||||
Host I
|
||||
Hostname iron.red.sphere.saluco.nl
|
||||
|
||||
## utility servers
|
||||
Host git
|
||||
Hostname git.saluco.nl
|
||||
User git
|
||||
|
||||
Host github
|
||||
Hostname github.com
|
||||
User git
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkgs="i3 i3lock i3status libpulse brightnessctl xss-lock dex maim dmenu gnome-keyring feh picom"
|
||||
pkgs="i3 i3lock i3status libpulse-mainloop-glib brightnessctl xss-lock dex maim dmenu gnome-keyring feh picom"
|
||||
|
||||
super_apply() {
|
||||
pacman -S --needed --noconfirm $pkgs
|
||||
apt install -y $pkgs
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
pacman -R --noconfirm $pkgs
|
||||
apt remove -y $pkgs
|
||||
}
|
||||
|
|
11
crates/05-i3/crate.pop.sh
Normal file
11
crates/05-i3/crate.pop.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkgs="i3 i3lock i3status libpulse brightnessctl xss-lock dex maim dmenu gnome-keyring feh picom"
|
||||
|
||||
super_apply() {
|
||||
pacman -S --needed --noconfirm $pkgs
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
pacman -R --noconfirm $pkgs
|
||||
}
|
|
@ -3,5 +3,5 @@ super_apply() {
|
|||
}
|
||||
|
||||
super_undo() {
|
||||
pacman -R --noconfirm zsh
|
||||
apt remove -y zsh
|
||||
}
|
7
crates/10-zsh/crate.pop.sh
Normal file
7
crates/10-zsh/crate.pop.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
apt install -y zsh
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
apt remove -y zsh
|
||||
}
|
7
crates/30-alacritty/crate.pop.sh
Normal file
7
crates/30-alacritty/crate.pop.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
apt install -y alacritty
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
apt remove -y alacritty
|
||||
}
|
Loading…
Reference in a new issue