FHS-violating package managers on Silverblue: nix, guix, snapd?

Hi, team silverblue!

I wonder if there is currently possible, maybe with some workarounds, to use nix, guix, snapd on Fedora Silverblue. They all require non-FHS mount points like /nix .

I’ve not played with any of those, but I have had some luck using packages distributed as AppImages on Silverblue without much issue. If something’s not available through flatpak, I tend to try to find an AppImage for it.

1 Like

See https://github.com/projectatomic/rpm-ostree/issues/337 and https://github.com/projectatomic/rpm-ostree/issues/1711

Thank you. Would be great to see it done. Fedora silverblue is awesome technology

Actually, you can use snaps on Silverblue too:

rpm-ostree install snapd
chattr -i / && ln -s /var/lib/snapd/snap /snap

Rather than manually creating the symlink, the better way would probably be to use systemd-tmpfiles, which is used to create some of the other symlinks on the system.

Hi @refi64, how can I use systemd-tmpfiles to create /nix?

I think the better route would be to use one of the rootless install methods described here. Nix won’t allow /nix to be a symlink by default because it can cause issues with source builds.

1 Like

Thanks, @refi64! It worked!

1 Like