From 7322074a28ee67aeee9b0a9ea54df54876f1da7a Mon Sep 17 00:00:00 2001 From: Simon Ledoux Date: Tue, 23 Jul 2024 10:33:51 +0200 Subject: [PATCH] feat: install optimot --- files/scripts/{example.sh => optimot.sh} | 4 +-- files/system/usr/.gitkeep | 0 recipes/recipe.yml | 41 +++--------------------- 3 files changed, 5 insertions(+), 40 deletions(-) rename files/scripts/{example.sh => optimot.sh} (63%) delete mode 100644 files/system/usr/.gitkeep diff --git a/files/scripts/example.sh b/files/scripts/optimot.sh similarity index 63% rename from files/scripts/example.sh rename to files/scripts/optimot.sh index fdb2e04..214b015 100644 --- a/files/scripts/example.sh +++ b/files/scripts/optimot.sh @@ -5,6 +5,4 @@ # builds actually ran successfully without any errors! set -oue pipefail -# Your code goes here. -echo 'This is an example shell script' -echo 'Scripts here will run during build if specified in recipe.yml' +yes 1 | sudo sh -c "$(curl -fsSL https://steevelefort.github.io/optimot-install/install.sh)" diff --git a/files/system/usr/.gitkeep b/files/system/usr/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/recipes/recipe.yml b/recipes/recipe.yml index 931953f..e8efc55 100644 --- a/recipes/recipe.yml +++ b/recipes/recipe.yml @@ -4,48 +4,15 @@ name: meow-os description: This is my personal OS image. # the base image to build on top of (FROM) and the version tag to use -base-image: ghcr.io/ublue-os/silverblue-main +base-image: ghcr.io/ublue-os/aurora-dx image-version: 40 # latest is also supported if you want new updates ASAP # module configuration, executed in order # you can include multiple instances of the same module modules: - - type: files - files: - - source: system - destination: / # copies files/system/* (* means everything inside it) into your image's root folder / - # put configuration files you want in /usr/etc/ inside the image - # while putting files in /etc/ is done on booted system by system administrators. - # read more about this in files module reference. - - - type: rpm-ostree - repos: - # - https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo - install: - # - micro - # - starship - remove: - # example: removing firefox (in favor of the flatpak) - # "firefox" is the main package, "firefox-langpacks" is a dependency - # - firefox - # - firefox-langpacks # also remove firefox dependency (not required for all packages, this is a special case) - - - type: default-flatpaks - notify: true # Send notification after install/uninstall is finished (true/false) - system: - # If no repo information is specified, Flathub will be used by default - # repo-url: https://dl.flathub.org/repo/flathub.flatpakrepo - # repo-name: flathub - # repo-title: "Flathub (system-wide)" # Optional; this sets the remote's user-facing name in graphical frontends like GNOME Software - install: - # - org.mozilla.firefox - # - org.gnome.Loupe - # - one.ablaze.floorp//lightning # This is an example of flatpak which has multiple branches in selection (flatpak//branch). - # Flatpak runtimes are not supported (like org.winehq.Wine//stable-23.08), - # only normal flatpak applications are (like Floorp Lightning web browser in this example). - # Installing different branches of the same Flatpak is not supported. - remove: - # - org.gnome.eog + - type: script + scripts: + - optimot.sh - type: signing # this sets up the proper policy & signing files for signed images to work fully