gmodena / nix-flatpak

Install flatpaks declaratively
Apache License 2.0
276 stars 10 forks source link

Trying to add `nix-flatpak` as a home-manager module. What am I doing wrong? #55

Closed Andy3153 closed 5 months ago

Andy3153 commented 5 months ago

So, I added the nix-flatpak input to my NixOS flake, rebuilt and switched to the new generation, everything seemed fine.

Then, I wanted to add the input to my home-manager flake too, since I will want some Flatpaks installed system-wide, and some only for specific users. Followed the instructions as best as I could, since the examples show importing the module inside a NixOS HM module, but I use HM standalone, and I ran into this error.

$ home-manager -v switch --flake ~/.config/home-manager/#andy3153

error:
       … while updating the lock file of flake 'path:/home/andy3153/.config/home-manager?lastModified=1710550103&narHash=sha256-k7/smjAUtDKPYjwQYQ4l2AlW2Tdth/2F0LOlFyGvdHk%3D'

       … while updating the flake input 'nix-flatpak'

       … while fetching the input 'github:gmodena/nix-flatpak/v0.3.0'

       error: failed to extract archive (Could not open /tmp/nix-10224-0/nix-flatpak-a243cb0522f6240c194b873dde68e25370b06034)

This is my home-manager flake.

What have I done wrong?

Andy3153 commented 5 months ago

Solved here. Still have no idea what the root cause was though.