Commit graph

29 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
fiftydinar
f3e2378439 Echo adding & setting title for remote when it's actually done 2023-12-20 10:18:50 +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
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
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
xyny
a21e245279
feat: flatpaksync submodule (#62) 2023-10-22 10:04:32 +00:00
xynydev
96311d98d9 chore: rename GIST_REPO to GIT_REPO 2023-10-22 12:41:00 +03:00
zelikos
11dd657557
feat(default-flatpaks): Send notification after successful flatpak setup 2023-10-14 13:04:47 -04:00
zelikos
11fe7ce3bb
style: Fix indentation in -flatpak-setup scripts to match 2023-10-14 11:28:42 -04:00
zelikos
0c529200f1
fix(default-flatpaks): Quit gnome-software before removing Fedora remotes 2023-10-14 11:23:19 -04:00
zelikos
e0efeaba0f
fix(default-flatpaks): Explicitly remove Fedora flatpaks
They -should- already get removed when the Fedora remote is, but in case
any remain, remove them.
2023-10-14 11:20:30 -04:00
zelikos
121cbe2c06
fix: Restart flatpaks setup on install failure 2023-10-14 11:18:01 -04:00
zelikos
b00777400a
refactor: Install/remove flatpaks all at once, instead of one at a time 2023-10-14 11:11:45 -04:00
Lucas Ribeiro
e9cdbc638b
fix: rm at sync. 2023-10-13 14:21:29 -03:00
Lucas Ribeiro
54f3d13557
fix: source env file 2023-10-12 09:02:01 -03:00
Lucas Ribeiro
1cbaa10135
feat: flatpaksync module 2023-10-12 08:48:35 -03:00
zelikos
ec1389e2d5
feat: Add output for flatpak remote configuration steps 2023-10-04 13:16:38 -04:00
zelikos
d186aacdc5
fix: Remove fedora-testing remote too 2023-10-04 12:55:55 -04:00
zelikos
7424ce86e4
fix: Check that flatpak repo is configured before trying to add 2023-10-02 21:53:58 -04:00
zelikos
874afef229
feat(default-flatpaks): Make repo configurable 2023-10-02 21:03:58 -04:00
zelikos
6ad9056d20
refactor: Use subdirs instead of filename prefixes 2023-10-02 17:31:49 -04:00
zelikos
d91804c8b7
refactor: Move module files into bling files directory 2023-10-02 11:47:32 -04:00
tulili
25322928b2
feat: add kubectl and fix kubectx/kubens 2023-09-21 03:12:11 -03:00
tulili
96ef1b1efc
refactor(nix): use determinate system installer instead of custom script 2023-08-27 00:50:06 -03:00
lili
9d26e2e7fb
feat: change file structure to make building RPMs possible + package wallpapers as RPM 2023-06-30 01:30:47 -03:00