Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
refactor: move everything that sets up something to setup.just
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Jul 22, 2023
1 parent 7f7505b commit ec9f056
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
36 changes: 4 additions & 32 deletions usr/share/ublue-os/just/custom.just
Original file line number Diff line number Diff line change
@@ -1,39 +1,11 @@
bling:
@just --unstable -f /usr/share/ublue-os/just/bling.just

setup:
@just --unstable -f /usr/share/ublue-os/just/setup.just

skel-to-home:
rsync -avh /etc/skel "$HOME"

positivo-touchscreen:
printf 'SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{WL_OUTPUT}="silead_ts", ENV{LIBINPUT_CALIBRATION_MATRIX}="2.0994971271086835 0.0 -0.009475882227217559 0.0 3.2251959199264215 -0.002555450541782298 0.0 0.0 1.0"' | sudo tee -a /etc/udev/rules.d/99-positivo-touchscreen.rules

update-yadm:
cd $HOME/.local/share/yadm-clone && git pull

fish:
sudo usermod -s /usr/bin/fish $USER
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fish -c 'omf install bobthefish'

yadm:
git clone https://github.com/TheLocehiliosan/yadm.git ~/.local/share/yadm-clone
mkdir -p $HOME/.local/bin
ln -s $HOME/.local/share/yadm-clone $HOME/.local/bin/yadm
yadm clone https://github.com/tulilirockz/yadm-dotfiles.git
yadm reset --hard HEAD

tailscale:
sudo tailscale up

remotes:
systemctl enable --now cockpit.socket sshd tailscaled
sudo firewall-cmd --add-service=ssh
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --runtime-to-permanent
sudo firewall-cmd --reload

dconf:
sudo dconf update

postinstall: fish dconf remotes yadm tailscale
@echo "remember to set your hostname with hostnamectl hostname !"
cd $HOME/.local/share/yadm-clone && git pull
31 changes: 31 additions & 0 deletions usr/share/ublue-os/just/setup.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
fish:
sudo usermod -s /usr/bin/fish $USER
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fish -c 'omf install bobthefish'

dotfiles:
git clone https://github.com/TheLocehiliosan/yadm.git ~/.local/share/yadm-clone
mkdir -p $HOME/.local/bin
ln -s $HOME/.local/share/yadm-clone $HOME/.local/bin/yadm
yadm clone https://github.com/tulilirockz/yadm-dotfiles.git
yadm reset --hard HEAD

remotes:
systemctl enable --now cockpit.socket sshd tailscaled
pkexec sh -c "firewall-cmd --add-service=ssh ; firewall-cmd --add-service=cockpit ; firewall-cmd --runtime-to-permanent ; firewall-cmd --reload"
pkexec tailscale up

dconf:
sudo dconf update

positivo-touchscreen:
printf 'SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{WL_OUTPUT}="silead_ts", ENV{LIBINPUT_CALIBRATION_MATRIX}="2.0994971271086835 0.0 -0.009475882227217559 0.0 3.2251959199264215 -0.002555450541782298 0.0 0.0 1.0"' | sudo tee -a /etc/udev/rules.d/99-positivo-touchscreen.rules

nimbus:
distrobox create -i ghcr.io/tulilirockz/nimbus:latest -n nimbus -Y
distrobox-enter -n nimbus -- 'paru -Syu --noconfirm visual-studio-code-bin'
distrobox-enter -n nimbus -- 'distrobox-export --app code && distrobox-export --bin /usr/sbin/code'

gamebox:
distrobox create -i ghcr.io/ublue-os/bazzite-arch:latest -n gamebox -Y
distrobox-enter -n gamebox -- 'distrobox-export --app steam ; distrobox export --app lutris ; distrobox-export --bin protontricks ; distrobox-export --bin lutris'

0 comments on commit ec9f056

Please sign in to comment.