diff --git a/Containerfile b/Containerfile index 6f918da..cf64be6 100644 --- a/Containerfile +++ b/Containerfile @@ -81,6 +81,12 @@ RUN echo "LANG=fr_FR.UTF-8" > /etc/locale.conf \ && ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime \ && echo "user.max_user_namespaces=28633" > /etc/sysctl.d/userns.conf +# Installation du pack d'icones MoreWaita +RUN git clone https://github.com/somepaulo/MoreWaita.git && cd MoreWaita && ./install.sh && \ + rm -rf MoreWaita && \ + printf "[org/gnome/desktop/interface]\nicon-theme='MoreWaita'\n" > /etc/dconf/db/local.d/02-icon-theme && \ + dconf update 2>/dev/null || true + #Configuration des fenêtres gnome pour avoir les btns style windows RUN mkdir -p /etc/dconf/db/local.d /etc/dconf/profile && \ printf "[org/gnome/desktop/wm/preferences]\nbutton-layout=':minimize,maximize,close'\n" > /etc/dconf/db/local.d/02-window-buttons && \ @@ -90,10 +96,12 @@ RUN mkdir -p /etc/dconf/db/local.d /etc/dconf/profile && \ #Activation du module xpad pour support manette xbox RUN echo "xpad" > /etc/modules-load.d/xpad.conf -# Ajout de flathub avec des apps par défaut -# RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo \ -# && flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 \ -# && flatpak install -y --system flathub io.github.kolunmi.Bazaar +#Ajout de flathub +RUN flatpak remote-add --if-not-exists --system flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true + +#Activation du service flatpak-first-boot +COPY services/flatpak-first-boot.service /etc/systemd/system/flatpak-first-boot.service +RUN systemctl enable flatpak-first-boot.service #Définir le target graphique par défaut RUN systemctl set-default graphical.target @@ -101,4 +109,4 @@ RUN systemctl set-default graphical.target #Activation des services + Desactivation de bootc-update automatique RUN systemctl preset-all && \ systemctl enable gdm.service NetworkManager.service bluetooth.service podman.socket cups.service mullvad-daemon.service && \ - systemctl mask bootc-fetch-apply-updates.timer \ No newline at end of file + systemctl mask bootc-fetch-apply-updates.timer diff --git a/services/flatpak-first-boot.service b/services/flatpak-first-boot.service new file mode 100644 index 0000000..824de10 --- /dev/null +++ b/services/flatpak-first-boot.service @@ -0,0 +1,17 @@ +[Unit] +Description=Installation des Flatpaks au premier démarrage +After=network-online.target flatpak-system-helper.service +Wants=network-online.target +ConditionPathExists=!/var/lib/flatpak/.firstboot-done + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/bash -c '\ + flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 && \ + flatpak install -y --system flathub io.github.kolunmi.Bazaar && \ + touch /var/lib/flatpak/.firstboot-done' +StandardOutput=journal + +[Install] +WantedBy=multi-user.target