nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.1k stars 81 forks source link

flatpak: ~/.local/share/flatpak/repo: opening repo: opendir(objects): No such file or directory #41

Open bbigras opened 3 years ago

bbigras commented 3 years ago

Anyone using impermanence with flatpak?

I got:

flatpak install com.valvesoftware.Steam

error: While opening repository /home/bbigras/.local/share/flatpak/repo: opening repo: opendir(objects): No such file or directory

I tried with home.persistence and environment.persistence.

talyz commented 3 years ago

I haven't tried using flatpak with impermanence yet. Can you post a more detailed configuration, so I can attempt to reproduce it?

bbigras commented 3 years ago
{
  services.flatpak.enable = true;
  users.users.bbigras.extraGroups = [ "flatpak" ];

  environment.persistence."/persist" = {
    directories = [
      "/var/lib/flatpak"
    ];
  };

  home.persistence."/persist/home/bbigras" = {
    directories = [
      ".cache/flatpak"
      ".local/share/flatpak"
    ];
  };
}

then run:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install com.valvesoftware.Steam
bbigras commented 3 years ago

Can you reproduce it?

talyz commented 2 years ago

Sorry I haven't responded earlier. I have now tried to reproduce this issue, but can't. At least with the code in #62. I don't know why that PR would have solved this; maybe it was solved prior to it or the issue was solved in flatpak :shrug:

slrslr commented 2 years ago

On Debian 11 stable i am seeing the error in title also. Here is the full output is here after "apt install flatpak" and trying to "flatpak search XY".

UPDATE: this error was caused by missing "sudo " before the command. Can this be fixed so the error better suggest that i have no permission and need sudo?

guglovich commented 2 years ago

I have the same error on Arch