generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdesktop-packages.sh
executable file
·100 lines (92 loc) · 2.54 KB
/
desktop-packages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env bash
set ${SET_X:+-x} -eou pipefail
echo "Running desktop packages scripts..."
/ctx/desktop-1password.sh
# ublue staging repo needed for ghostty, etc
dnf5 -y copr enable ublue-os/staging
# VSCode because it's still better for a lot of things
tee /etc/yum.repos.d/vscode.repo <<'EOF'
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
# common packages installed to desktops
dnf5 install --setopt=install_weak_deps=False -y \
adw-gtk3-theme \
cascadia-code-fonts \
ccache \
cockpit-bridge \
cockpit-files \
cockpit-machines \
cockpit-networkmanager \
cockpit-ostree \
cockpit-podman \
cockpit-selinux \
cockpit-storaged \
cockpit-system \
code \
devpod \
edk2-ovmf \
genisoimage \
gh \
ghostty \
gnome-shell-extension-no-overview \
ibm-plex-mono-fonts \
libpcap-devel \
libretls \
libvirt \
libvirt-daemon-kvm \
libvirt-ssh-proxy \
libvirt-nss \
lm_sensors \
ltrace \
nerd-fonts \
patch \
pipx \
podman-machine \
powerline-fonts \
qemu-char-spice \
qemu-device-display-virtio-gpu \
qemu-device-display-virtio-vga \
qemu-device-usb-redirect \
qemu-img \
qemu-kvm \
qemu-system-x86-core \
qemu-user-binfmt \
qemu-user-static \
qemu \
rocm-hip \
rocm-opencl \
rocm-smi \
rsms-inter-fonts \
shellcheck \
shfmt \
strace \
udisks2-btrfs \
udisks2-lvm2 \
virt-install \
virt-manager \
virt-viewer \
virt-v2v \
yamllint \
ydotool
# github direct installs
/ctx/github-release-install.sh twpayne/chezmoi x86_64
curl -Lo /tmp/yamlfmt.tar.gz \
"$(/ctx/github-release-url.sh google/yamlfmt Linux_x86_64)"
tar -xvf /tmp/yamlfmt.tar.gz -C /usr/bin/ yamlfmt
# Zed because why not?
curl -Lo /tmp/zed.tar.gz \
https://zed.dev/api/releases/stable/latest/zed-linux-x86_64.tar.gz
mkdir -p /usr/lib/zed.app/
tar -xvf /tmp/zed.tar.gz -C /usr/lib/zed.app/ --strip-components=1
chown 0:0 -R /usr/lib/zed.app
ln -s /usr/lib/zed.app/bin/zed /usr/bin/zed-cli
cp /usr/lib/zed.app/share/applications/zed.desktop /usr/share/applications/dev.zed.Zed.desktop
mkdir -p /usr/share/icons/hicolor/1024x1024/apps
cp {/usr/lib/zed.app,/usr}/share/icons/hicolor/512x512/apps/zed.png
cp {/usr/lib/zed.app,/usr}/share/icons/hicolor/1024x1024/apps/zed.png
sed -i "s@Exec=zed@Exec=/usr/lib/zed.app/libexec/zed-editor@g" /usr/share/applications/dev.zed.Zed.desktop