2024-05-03 09:56:30 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ouex pipefail
|
|
|
|
|
2024-05-03 17:11:18 +02:00
|
|
|
### Add repos
|
2024-05-03 09:56:30 +02:00
|
|
|
|
2024-11-17 19:59:08 +01:00
|
|
|
# Add niri repo
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable yalter/niri
|
2024-11-17 19:59:08 +01:00
|
|
|
|
2024-05-03 17:11:18 +02:00
|
|
|
# Add Staging repo
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable ublue-os/staging
|
2024-05-03 17:11:18 +02:00
|
|
|
|
|
|
|
# Add Bling repo
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable ublue-os/bling
|
2024-05-03 17:11:18 +02:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable ganto/lxc4
|
2024-05-03 09:56:30 +02:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable che/nerd-fonts
|
2024-05-03 17:11:18 +02:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable pgdev/ghostty
|
2024-12-29 19:35:11 +01:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable alternateved/bleeding-emacs
|
2025-02-23 15:49:22 +01:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable ulysg/xwayland-satellite
|
2025-03-16 18:59:56 +01:00
|
|
|
|
2024-10-12 21:30:20 +02:00
|
|
|
curl https://downloads.1password.com/linux/keys/1password.asc | tee /etc/pki/rpm-gpg/1password.gpg
|
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
dnf5 -y copr enable gmaglione/podman-bootc
|
|
|
|
|
2024-10-12 21:30:20 +02:00
|
|
|
### Install 1password using blue-build script
|
|
|
|
|
2024-11-12 22:51:08 +01:00
|
|
|
curl -Lo 1password.sh https://raw.githubusercontent.com/blue-build/modules/22fe11d844763bf30bd83028970b975676fe7beb/modules/bling/installers/1password.sh
|
2024-10-12 21:30:20 +02:00
|
|
|
|
|
|
|
chmod +x 1password.sh
|
|
|
|
bash ./1password.sh
|
|
|
|
|
|
|
|
rm 1password.sh
|
|
|
|
|
2024-05-03 17:11:18 +02:00
|
|
|
### Install packages
|
2024-05-03 09:56:30 +02:00
|
|
|
|
2025-06-18 21:13:55 +02:00
|
|
|
grep -v '^#' /tmp/packages | xargs dnf5 install -y
|
2024-05-03 09:56:30 +02:00
|
|
|
|
2024-06-03 19:46:13 +02:00
|
|
|
# Install topgrade
|
|
|
|
pip install --prefix=/usr topgrade
|
|
|
|
|
2024-12-01 18:28:07 +01:00
|
|
|
#### os-release
|
|
|
|
|
2025-06-21 16:06:58 +02:00
|
|
|
echo "VARIANT=Azure" >> /usr/lib/os-release
|
|
|
|
echo "VARIANT_ID=com.babariviere.azure" >> /usr/lib/os-release
|
2024-12-01 18:28:07 +01:00
|
|
|
|
2024-11-10 12:39:36 +01:00
|
|
|
#### Quadlets
|
|
|
|
|
2024-11-12 22:51:08 +01:00
|
|
|
mkdir -p /etc/containers/systemd/users
|
2024-11-10 12:39:36 +01:00
|
|
|
curl -Lo /etc/containers/systemd/users/azure-cli.container https://raw.githubusercontent.com/babariviere/toolboxes/main/quadlets/azure-cli/azure-cli.container
|
|
|
|
sed -i 's/ContainerName=azure/ContainerName=azure-cli/' /etc/containers/systemd/users/azure-cli.container
|
|
|
|
|
|
|
|
# Make systemd targets
|
|
|
|
mkdir -p /usr/lib/systemd/user
|
|
|
|
QUADLET_TARGETS=(
|
|
|
|
"azure-cli"
|
|
|
|
)
|
2024-11-12 22:51:08 +01:00
|
|
|
for i in "${QUADLET_TARGETS[@]}"; do
|
2024-12-01 18:01:06 +01:00
|
|
|
cat > "/usr/lib/systemd/user/${i}.target" <<EOF
|
2024-11-10 12:39:36 +01:00
|
|
|
[Unit]
|
2024-12-01 18:16:14 +01:00
|
|
|
Description="target for ${i} quadlet
|
2024-11-10 12:39:36 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|
|
|
|
EOF
|
2024-12-01 18:16:14 +01:00
|
|
|
|
|
|
|
printf "\n\n[Install]\nWantedBy=%s.target" "$i" >> /etc/containers/systemd/users/"$i".container
|
2024-11-12 22:51:08 +01:00
|
|
|
done
|
2024-11-10 12:39:36 +01:00
|
|
|
|
2024-12-14 11:04:49 +01:00
|
|
|
#### Setup devpod
|
|
|
|
|
|
|
|
ln -s /usr/bin/devpod-cli /usr/bin/devpod
|
|
|
|
|
2024-11-17 19:59:08 +01:00
|
|
|
#### Setup niri deps
|
|
|
|
|
|
|
|
mkdir /usr/lib/systemd/user/niri.service.wants
|
|
|
|
ln -s /usr/lib/systemd/user/mako.service /usr/lib/systemd/user/niri.service.wants/
|
|
|
|
ln -s /usr/lib/systemd/user/waybar.service /usr/lib/systemd/user/niri.service.wants/
|
|
|
|
ln -s /usr/lib/systemd/user/swayidle.service /usr/lib/systemd/user/niri.service.wants/
|
|
|
|
ln -s /usr/lib/systemd/user/kanshi.service /usr/lib/systemd/user/niri.service.wants/
|
|
|
|
|
2024-05-03 17:11:18 +02:00
|
|
|
#### Services
|
2024-05-03 09:56:30 +02:00
|
|
|
|
|
|
|
systemctl enable podman.socket
|
2025-01-04 12:51:45 +01:00
|
|
|
systemctl enable -f --global podman.socket
|
2024-11-10 12:47:56 +01:00
|
|
|
systemctl enable podman-auto-update.timer
|
2024-12-01 18:01:06 +01:00
|
|
|
systemctl enable greetd.service
|
2024-11-17 19:59:08 +01:00
|
|
|
|
2024-12-09 23:04:13 +01:00
|
|
|
systemctl enable tlp.service
|
|
|
|
|
2024-05-05 12:27:56 +02:00
|
|
|
systemctl enable -f --global flatpak-setup.service
|
2024-06-03 19:46:13 +02:00
|
|
|
systemctl enable -f --global azure-topgrade.service
|
2025-02-22 16:01:24 +01:00
|
|
|
systemctl enable -f --global syncthing.service
|
2024-05-14 11:49:15 +02:00
|
|
|
|
|
|
|
systemctl enable azure-system-setup.service
|
|
|
|
systemctl enable azure-groups.service
|
2025-06-18 21:13:55 +02:00
|
|
|
|
|
|
|
dnf5 -y copr disable yalter/niri
|
|
|
|
|
|
|
|
# Add Staging repo
|
|
|
|
dnf5 -y copr disable ublue-os/staging
|
|
|
|
|
|
|
|
# Add Bling repo
|
|
|
|
dnf5 -y copr disable ublue-os/bling
|
|
|
|
|
|
|
|
dnf5 -y copr disable ganto/lxc4
|
|
|
|
|
|
|
|
dnf5 -y copr disable che/nerd-fonts
|
|
|
|
|
|
|
|
dnf5 -y copr disable pgdev/ghostty
|
|
|
|
|
|
|
|
dnf5 -y copr disable alternateved/bleeding-emacs
|
|
|
|
|
|
|
|
dnf5 -y copr disable ulysg/xwayland-satellite
|
|
|
|
|
|
|
|
curl https://downloads.1password.com/linux/keys/1password.asc | tee /etc/pki/rpm-gpg/1password.gpg
|
|
|
|
|
|
|
|
dnf5 -y copr disable gmaglione/podman-bootc
|
2025-06-18 21:26:24 +02:00
|
|
|
|
|
|
|
rm -rf /var/log
|