move more stuff to flatpak

This commit is contained in:
Matthew Tran 2026-01-24 22:17:26 -08:00
parent ae5ffa9a4a
commit fe2258b0e7

View File

@ -163,16 +163,14 @@ def add_packages():
"ExecStart=/usr/bin/rpm-ostree install -y --allow-inactive " + " ".join([ "ExecStart=/usr/bin/rpm-ostree install -y --allow-inactive " + " ".join([
"alsa-utils", "alsa-utils",
"avahi", "avahi",
"chromium",
"firefox",
"flatpak", "flatpak",
"htop", "htop",
"python3", "python3",
"seatd", "seatd",
"sway", "sway",
"tmux", "tmux",
"usbutils",
"vim", "vim",
"weston",
"zip", "zip",
]), ]),
"ExecStart=/bin/touch /etc/rpm/%N.stamp", "ExecStart=/bin/touch /etc/rpm/%N.stamp",
@ -182,12 +180,13 @@ def add_packages():
]), ]),
}, },
{ # TODO update once done https://github.com/coreos/rpm-ostree/issues/49 { # TODO update once done https://github.com/coreos/rpm-ostree/issues/49
"name": "post-rpm-ostree-install.service", "name": "tv-setup.service",
"enabled": True, "enabled": True,
"contents": "\n".join([ "contents": "\n".join([
"[Unit]", "[Unit]",
"Description=Post package install setup", "Description=Post package install setup",
"After=local-fs.target", "Wants=network-online.target",
"After=network-online.target",
"ConditionPathExists=/etc/rpm/rpm-ostree-install.stamp", "ConditionPathExists=/etc/rpm/rpm-ostree-install.stamp",
"ConditionPathExists=!/etc/rpm/%N.stamp", "ConditionPathExists=!/etc/rpm/%N.stamp",
"[Service]", "[Service]",
@ -196,6 +195,12 @@ def add_packages():
"ExecStart=/usr/bin/sh -c 'grep -E \"^(audio|seat|video):\" /usr/lib/group >> /etc/group'", "ExecStart=/usr/bin/sh -c 'grep -E \"^(audio|seat|video):\" /usr/lib/group >> /etc/group'",
"ExecStart=/usr/bin/usermod -aG audio,seat,video tv", "ExecStart=/usr/bin/usermod -aG audio,seat,video tv",
"ExecStart=/usr/bin/systemctl enable --now seatd", "ExecStart=/usr/bin/systemctl enable --now seatd",
"ExecStart=flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo",
"ExecStart=flatpak install -y " + " ".join([
"com.brave.Browser",
"org.mozilla.firefox",
"com.valvesoftware.SteamLink",
]),
"ExecStart=/bin/touch /etc/rpm/%N.stamp", "ExecStart=/bin/touch /etc/rpm/%N.stamp",
"[Install]", "[Install]",
"WantedBy=multi-user.target", "WantedBy=multi-user.target",