Update flatpak-management.nix

This commit is contained in:
ska
2025-12-25 23:57:02 +00:00
parent 747ef2be20
commit bfda6c0b05

View File

@@ -14,7 +14,7 @@ let
installedFlatpaks=$(${pkgs.flatpak}/bin/flatpak list --app --columns=application) installedFlatpaks=$(${pkgs.flatpak}/bin/flatpak list --app --columns=application)
# Users can decide what flatpaks they want to install so this is disabled # Users can decide what flatpaks they want to install so this is disabled
Remove Flatpaks not in the desired list # Remove Flatpaks not in the desired list
for installed in $installedFlatpaks; do for installed in $installedFlatpaks; do
if ! echo ${lib.concatStringsSep " " desiredFlatpaks} | grep -q "$installed"; then if ! echo ${lib.concatStringsSep " " desiredFlatpaks} | grep -q "$installed"; then
echo "Removing $installed because it's not in the desiredFlatpaks list." echo "Removing $installed because it's not in the desiredFlatpaks list."