Skip to content

Commit

Permalink
Refactored main recipe into a common and nvidia-specific steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Torres Pérez committed Apr 29, 2024
1 parent 511205c commit 3b65330
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 73 deletions.
51 changes: 51 additions & 0 deletions config/common-recipe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
modules:
- type: files
files:
- usr: /usr # copies config/files/usr into your image's /usr.
# put configuration files you want in /etc/ on a booted system
# in /usr/etc/ in the image. read more 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
- simple-scan
- powerline-go
- gnome-shell-extension-appindicator
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)
- gnome-software-rpm-ostree
- virtualbox-guest-additions

- 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: fonts
fonts:
nerd-fonts:
- Ubuntu
- FiraCode
- CascadiaCode

- type: gschema-overrides
include:
- zz1-nimbus.gschema.override
File renamed without changes.
23 changes: 0 additions & 23 deletions config/files/usr/etc/z_powerline.sh

This file was deleted.

7 changes: 7 additions & 0 deletions config/nvidia-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
modules:
modules:
- type: files
files:
- nvidiausr: /usr # copies config/files/usr into your image's /usr.
# put configuration files you want in /etc/ on a booted system
# in /usr/etc/ in the image. read more in files module reference.
18 changes: 18 additions & 0 deletions config/recipe-nvidia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# image will be published to ghcr.io/<user>/<name>
name: nimbus-os-nvidia
# description will be included in the image's metadata
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-nvidia
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:
- from-file: common-recipe

- from-file: nvidia-changes

- type: signing # this sets up the proper policy & signing files for signed images to work fully

51 changes: 1 addition & 50 deletions config/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,7 @@ 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:
- usr: /usr # copies config/files/usr into your image's /usr.
# put configuration files you want in /etc/ on a booted system
# in /usr/etc/ in the image. read more 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
- simple-scan
- powerline-go
- gnome-shell-extension-appindicator
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)
- gnome-software-rpm-ostree
- virtualbox-guest-additions

- 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: fonts
fonts:
nerd-fonts:
- Ubuntu
- FiraCode
- CascadiaCode

- type: gschema-overrides
include:
- zz1-nimbus.gschema.override
- from-file: common-recipe

- type: signing # this sets up the proper policy & signing files for signed images to work fully

0 comments on commit 3b65330

Please sign in to comment.