nix-community / impermanence

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

(home-manager) File manager (Nautilus) shows persistent folders as ejectable drives #64

Closed Lyndeno closed 2 years ago

Lyndeno commented 2 years ago

Nautilus shows my Documents and Downloads folder as ejectable drive as well as showing drive icons beside them in the file view in /home. A solution I am thinking of would be to allow setting mount options with impermanence so the x-gvfs-hide option can be used.

Unsure whether this option would be set per directory/file or per persistent mount (set mount option that affects all of /nix/persist for example).

lovesegfault commented 2 years ago

I think this is fundamentally a bug with Nautilus choosing to display bind mounts like external devices. Should be reported upstream IMO.

talyz commented 2 years ago

@lovesegfault I think this refers to the bind mounts created by the home-manager module, which are fuse mounts and therefore show up in Nautilus. Regular bind mounts should be hidden by default, but could appear anyway in some circumstances (they do to me, probably because bind mounts appear as subvolume mounts on btrfs).

I think we could just always supply the x-gvfs-hide option to bind mounts across the board. I don't see any reason why they should ever be shown in Nautilus.