Update flatpak-management.nix
This commit is contained in:
@@ -32,7 +32,12 @@ let
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Hardcoded Threema install because the beta is not on Flathub yet
|
# Hardcoded Threema install because the beta is not on Flathub yet
|
||||||
${pkgs.flatpak}/bin/flatpak install -y --from https://releases.threema.ch/flatpak/threema-desktop/ch.threema.threema-desktop.flatpakref --noninteractive
|
if ${pkgs.flatpak}/bin/flatpak info ch.threema.threema-desktop >/dev/null 2>&1; then
|
||||||
|
echo "Threema Desktop is already installed"
|
||||||
|
else
|
||||||
|
echo "Installing Threema Desktop..."
|
||||||
|
${pkgs.flatpak}/bin/flatpak install -y --from https://releases.threema.ch/flatpak/threema-desktop/ch.threema.threema-desktop.flatpakref --noninteractive
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove unused Flatpaks
|
# Remove unused Flatpaks
|
||||||
${pkgs.flatpak}/bin/flatpak uninstall --unused -y --noninteractive
|
${pkgs.flatpak}/bin/flatpak uninstall --unused -y --noninteractive
|
||||||
|
|||||||
Reference in New Issue
Block a user