Update flatpak.nix
This commit is contained in:
13
flatpak.nix
13
flatpak.nix
@@ -14,13 +14,14 @@ in {
|
||||
# 3. Get currently installed Flatpaks
|
||||
installedFlatpaks=$(${pkgs.flatpak}/bin/flatpak list --app --columns=application)
|
||||
|
||||
# We allow users to install flatpaks on their own, so this part is not active
|
||||
# 4. Remove any Flatpaks that are NOT in the desired list
|
||||
for installed in $installedFlatpaks; do
|
||||
if ! echo ${toString desiredFlatpaks} | ${grep}/bin/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 ${toString desiredFlatpaks} | ${grep}/bin/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
|
||||
|
||||
# 5. Install or re-install the Flatpaks you DO want
|
||||
for app in ${toString desiredFlatpaks}; do
|
||||
|
||||
Reference in New Issue
Block a user