Update flatpak-management.nix
This commit is contained in:
@@ -15,12 +15,12 @@ let
|
||||
|
||||
# Users can decide what flatpaks they want to install so this is disabled
|
||||
# Remove Flatpaks not in the desired list
|
||||
for installed in $installedFlatpaks; do
|
||||
if ! echo ${lib.concatStringsSep " " desiredFlatpaks} | grep -q "$installed"; then
|
||||
echo "Removing $installed because it's not in the desiredFlatpaks list."
|
||||
${pkgs.flatpak}/bin/flatpak uninstall -y --noninteractive "$installed"
|
||||
fi
|
||||
done
|
||||
# for installed in $installedFlatpaks; do
|
||||
# if ! echo ${lib.concatStringsSep " " desiredFlatpaks} | grep -q "$installed"; then
|
||||
# echo "Removing $installed because it's not in the desiredFlatpaks list."
|
||||
# ${pkgs.flatpak}/bin/flatpak uninstall -y --noninteractive "$installed"
|
||||
# fi
|
||||
# done
|
||||
|
||||
# Install or re-install desired Flatpaks
|
||||
for app in ${lib.concatStringsSep " " desiredFlatpaks}; do
|
||||
|
||||
Reference in New Issue
Block a user