Commit graph

189 commits

Author SHA1 Message Date
fiftydinar
bd92e7e5c5
feat(default-flatpaks): Add info about which flatpaks are installed (#85)
* feat(default-flatpaks): Add info about which flatpaks are installed & uninstalled in notification. Also implement notification enable/disable config support.

* feat(default-flatpaks): Add support for configuring notifications in recipe file

* fix(default-flatpaks): Formatting fixes

* fix(default-flatpaks): Fix "enabling" typo instead of "configuring" notifications

* chore(default-flatpaks): Remove unused yq command

* fix(default-flatpaks): There is no need for 2 double quotes
2023-12-21 20:34:33 +00:00
Micah Abbott
623834bb3b
chore: force create firstboot symlink in yafti module (#82)
I switched my custom ublue image from using
"ublue-os/silverblue-nvidia" to "ublue-os/bazzite-gnome-nvidia" and
received the following error when the build action kicked off:

`ln: failed to create symbolic link '/usr/etc/profile.d/ublue-firstboot.sh': File exists`

The yafti module should be the only thing creating this symlink, so it
should be safe to use the `-f` flag to force creating it.

Signed-off-by: Micah Abbott <miabbott@redhat.com>
2023-12-21 05:59:33 +00:00
RJ Trujillo
cd1cd16519
Merge pull request #83 from fiftydinar/flatpak-fix
fix(default-flatpaks): Install & uninstall flatpaks on every boot
2023-12-20 06:20:16 -07:00
fiftydinar
dbc867ff55 Indicate that module skips flatpak install/uninstall if no changes are detected 2023-12-20 11:24:00 +01:00
fiftydinar
f3e2378439 Echo adding & setting title for remote when it's actually done 2023-12-20 10:18:50 +01:00
fiftydinar
07f1797838 Delete some README misinformation
It will loop on every boot to install & uninstall
2023-12-20 10:15:14 +01:00
fiftydinar
09af3b3602 Tiny README fix 2023-12-20 09:59:50 +01:00
fiftydinar
bf753ad0b6 Update README information to reflect these changes 2023-12-20 09:54:12 +01:00
fiftydinar
622c364e96 Send notifications for installed & uninstalled flatpaks only when it's done 2023-12-20 09:43:34 +01:00
fiftydinar
dc3cb750a3 There is no need for $flatpak string in uninstall command 2023-12-20 09:00:22 +01:00
fiftydinar
c550d67a29 Fix install & uninstall for more than 1 flatpak in the list 2023-12-20 08:53:07 +01:00
fiftydinar
40a45f6e5e Fix some formatting 2023-12-19 21:32:39 +01:00
fiftydinar
7b4b6581c8 fix(default-flatpaks): Install & uninstall only those flatpaks which are missing from the list.
This allows us to ditch the state file concept, which only allows us to run flatpak-setup once. After that, you need to manually delete the state file (system & user-flatpak-configured) if you want to have new changes from flatpak-setup.

This is not ideal.

We do not have the luxury of Bazzite, which allows you to change the version of the setup in setup service to automatically start it again (that's what they do).

Instead, we will install & uninstall only those flatpaks which are not on the list, ditching the need to have version checking.

I incorporated some shell formatting fixes, thanks to shellcheck.net.

The only thing that doesn't work right now is installing flatpaks from install list when you have some flatpaks installed already. Grep -v doesn't work for some reason when piped with echo, I'm looking in how to fix this.
I'm also looking into potentially bringing automatic version adjustment whenever you change the flatpak list/repo if possible, to ensure that flatpak-setup service exits immediately if there are no changes, compared to running fully checking for updates.
2023-12-19 14:33:17 +01:00
Kyle Gospodnetich
2d015f9de2
Merge pull request #81 from fiftydinar/main
fix: Revert "fix(default-flatpaks): Don't install packages that are al…
2023-12-18 01:19:49 -08:00
fiftydinar
4e42e3d004 Revert "fix(default-flatpaks): Don't install packages that are already present or remove packages that aren't there"
This reverts commit 0e97138535.
2023-12-18 09:46:21 +01:00
Jorge O. Castro
c947f86b2f
Merge pull request #79 from ublue-os/dependabot/github_actions/sigstore/cosign-installer-3.3.0
chore(deps): bump sigstore/cosign-installer from 3.2.0 to 3.3.0
2023-12-15 20:13:27 -07:00
Kyle Gospodnetich
9e557930cf
Merge pull request #80 from fiftydinar/main
fix(default-flatpaks): Dont install packages that are already present
2023-12-14 14:38:45 -08:00
fiftydinar
0e97138535 fix(default-flatpaks): Don't install packages that are already present or remove packages that aren't there
By @EyeCantCU

Took from Bazzite.

Please check if I did changes correctly.
2023-12-14 23:23:03 +01:00
dependabot[bot]
c5c89fa741
chore(deps): bump sigstore/cosign-installer from 3.2.0 to 3.3.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:15:15 +00:00
Tulili
c0943c009d
Merge pull request #76 from nadavspi/fix-laptop-just
fix: make `laptop` work without `justfiles`
2023-11-27 13:12:02 -08:00
Nadav Spiegelman
7eae821110 fix: make laptop work without justfiles
Make sure /usr/share/ublue-os/just/bling exists in case we're using
`laptop` without `justfiles`
2023-11-24 14:12:33 -05:00
Patrick Csikos
f0c0192e10
feat(default-flatpaks): Better handle multiple uses of module (#74)
* fix(default-flatpaks): Always enable systemd services

Ensures that the module always removes Fedora Flatpaks, even if a
system-wide flatpak remote isn't configured for the module.

* chore(default-flatpaks): Add output for result of repo config

* fix(default-flatpaks): Better handle multiple uses of module

* chore(default-flatpaks): Add label to output of existing config

* docs(default-flatpaks): Mention that Flatpak remote can be re-configured

* docs(default-flatpaks): Add second example to README

* docs(default-flatpaks): Clarify repo config in second example
2023-11-18 12:43:55 +00:00
Tulili
30ecc4cefd
fix(temp): pin devpod version 2023-11-17 20:34:41 -03:00
bobslept
926205e1bb
Merge pull request #75 from ublue-os/dependabot/github_actions/sigstore/cosign-installer-3.2.0
chore(deps): bump sigstore/cosign-installer from 3.1.2 to 3.2.0
2023-11-17 19:45:38 +01:00
dependabot[bot]
3bd494a8a2
chore(deps): bump sigstore/cosign-installer from 3.1.2 to 3.2.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.1.2 to 3.2.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.1.2...v3.2.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 15:17:32 +00:00
Patrick Csikos
4a5f00b07a
fix(default-flatpaks): Activate user-flatpak-setup after network-online.target (#73) 2023-11-09 10:05:45 +00:00
dependabot[bot]
7782df1c72
chore(deps): bump ASzc/change-string-case-action from 5 to 6 (#69)
Bumps [ASzc/change-string-case-action](https://github.com/aszc/change-string-case-action) from 5 to 6.
- [Release notes](https://github.com/aszc/change-string-case-action/releases)
- [Commits](https://github.com/aszc/change-string-case-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: ASzc/change-string-case-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-05 11:12:15 +00:00
xyny
01ad4357ef
fix(temp): don't fetch devpod 2023-11-02 12:33:30 +00:00
plata
f180516a60
chore: fix bling descriptions in example config (#71) 2023-11-01 12:19:35 +00:00
xyny
7a3554d823
feat: add 1Password installer 2023-10-30 14:46:56 +00:00
bri
206291f072
feat(1password): add 1password to readme
chore: remove redundant spaces
2023-10-29 20:30:34 -04:00
bri
07d322dddf
feat(1password): allow overriding RELEASE_CHANNEL 2023-10-24 21:34:08 -04:00
bri
fe903b9cce
feat: add 1Password 2023-10-24 19:27:33 -04:00
xyny
a21e245279
feat: flatpaksync submodule (#62) 2023-10-22 10:04:32 +00:00
xynydev
7fb5eed708 docs: detail & misc changes to flatpaksync docs 2023-10-22 12:52:58 +03:00
xynydev
96311d98d9 chore: rename GIST_REPO to GIT_REPO 2023-10-22 12:41:00 +03:00
xyny
b6b6c0eda4
feat: rebuild on push
Many times some fix is made and I have to tell people on discord "this didn't work yet because bling only builds at set times or manually". No more!
2023-10-22 09:35:12 +00:00
xyny
772d69ac73
docs: add extra indentation to the list in script README
MkDocs has some odd MD parsing going on, and lists just need to be this bit deeper...
2023-10-22 09:32:44 +00:00
Patrick Csikos
d83d721c18
docs(default-flatpaks): Make example config match other modules (#65)
* docs(default-flatpaks): Make example config match other modules

* docs(default-flatpaks): Indent list items in example config

Does seem to work if they aren't indented, but this way matches other
modules and seems to be best practice
2023-10-22 09:16:42 +00:00
Tulili
3bf33f9a39
Merge pull request #64 from zelikos/fix-bling-directory
fix(default-flatpaks): Set BLING_DIRECTORY fallback value
2023-10-21 18:38:25 -03:00
zelikos
66d2ba8d94
fix(default-flatpaks): Set BLING_DIRECTORY fallback value
...instead of overriding
2023-10-21 16:08:22 -04:00
zelikos
ee196a0528
fix(default-flatpaks): Intialize BLING_DIRECTORY variable 2023-10-21 15:53:06 -04:00
xyny
7104111352
feat: default-flatpaks module 2023-10-21 10:25:52 +00:00
xyny
5e6bc4c7ae
docs(default-flatpaks): put essential function first 2023-10-21 10:24:09 +00:00
zelikos
1c203cb6dd
fix(default-flatpaks): Only enable system/user services if respective repo is configured 2023-10-14 13:08:51 -04:00
zelikos
11dd657557
feat(default-flatpaks): Send notification after successful flatpak setup 2023-10-14 13:04:47 -04:00
zelikos
8bc41e6077
fix(default-flatpaks): Check that system/user configuration is present 2023-10-14 12:50:47 -04:00
zelikos
8251083a5c
style: Improve readability of default-flatpaks functions 2023-10-14 11:56:49 -04:00
zelikos
a4b8151e28
docs: Clarify default-flatpaks remote configuration 2023-10-14 11:44:44 -04:00
zelikos
30931ed9c2
fix: Use Flathub as default remote for default-flatpaks 2023-10-14 11:43:13 -04:00