feat: add azure-distrobox service

This commit is contained in:
Bastien Riviere 2024-05-19 16:23:11 +02:00
parent cd4b46af78
commit ad82b8b879
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
7 changed files with 24 additions and 8 deletions

View file

@ -58,7 +58,6 @@ COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-update-services /
COPY files / COPY files /
COPY build.sh /tmp/build.sh COPY build.sh /tmp/build.sh
COPY packages /tmp/packages COPY packages /tmp/packages
COPY build /tmp/build
RUN mkdir -p /var/lib/alternatives && \ RUN mkdir -p /var/lib/alternatives && \
/tmp/build.sh && \ /tmp/build.sh && \

View file

@ -27,12 +27,6 @@ rpm-ostree override remove opensc
# Installed via flatpak # Installed via flatpak
rpm-ostree override remove firefox firefox-langpacks rpm-ostree override remove firefox firefox-langpacks
### Setup flatpaks
mkdir -p /etc/azure/flatpaks
cp /tmp/build/flatpak-setup /usr/bin/flatpak-setup
cp /tmp/build/flatpak-setup.service /usr/lib/systemd/user/flatpak-setup.service
#### Services #### Services
systemctl enable docker.socket systemctl enable docker.socket
@ -40,6 +34,7 @@ systemctl enable incus.socket
systemctl enable podman.socket systemctl enable podman.socket
systemctl enable tailscaled.service systemctl enable tailscaled.service
systemctl enable -f --global flatpak-setup.service systemctl enable -f --global flatpak-setup.service
systemctl enable -f --global azure-distrobox.service
systemctl enable azure-system-setup.service systemctl enable azure-system-setup.service
systemctl enable azure-groups.service systemctl enable azure-groups.service

View file

@ -0,0 +1,14 @@
[Unit]
Description=Update distrobox for current user
Wants=network-online.target
After=network-online.service
[Service]
Type=simple
ExecStart=/usr/libexec/azure-distrobox
Restart=on-failure
RestartSec=30
StartLimitInterval=0
[Install]
WantedBy=default.target

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ ! -f ~/.config/distrobox.ini ]; then
echo "No distrobox config at ~/.config/distrobox.ini, skipping"
exit 0
fi
distrobox assemble create --file ~/.config/distrobox.ini

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p /etc/azure mkdir -p /etc/azure/flatpaks