-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/nix
on a subvolume or bindmount
#416
Comments
/nix
on a subvolume or bindmount
Hi @chewblacka ! This is something I'd like to support too! In fact, I think it may be required for things like #389 . One strategy here would be to have the Another approach would be to add a |
Hi @Hoverbear many thanks for the reply! I've been tinkering with the symlinked systemd unit files today, and try as I might I can't get them to work. The systemd unit file already contains several I even created an explicit systemd unit file to mount Many thanks! |
Ah! That sounds really similar to what we do on the Steam Deck where we have a unit which reloads the units after the mounts: nix-installer/src/planner/steam_deck.rs Lines 180 to 198 in 4cc8326
|
Many thanks @Hoverbear ! I followed your steam-deck install and copied your systemd units, which work great on a bind mount. Just a slight heads up. In your steam-deck install, in the
|
Great catch, thanks! |
Progress? |
Similar issue here. I attempted to workaround this on my own my only having I'll probably go the path of either copying over the systemd unit files, or the daemon-reload after mount, but being able to have /nix/store on a separate subvolume would be cleaner.
|
Hi, I would like to keep
/nix
separate from my root file system. Two ways I can accomplish this are to either:A. Put it in it's own btrfs subvolume
B. Bind mount
/nix
at boot to another file systemUnfortunately both of these solutions lead to 2 issues when using the Determinate Systems nix-installer. Namely:
/nix
" which it can't do (bind mounted dir or subvolume can't just be deleted) so it reports an error.Number 2 is pretty trivial (can be ignored), but ideally the installer would recognize during install that
/nix
was pre-existing, so during uninstall it would leave it place.Number 1 I'm not sure about. My current fix is to put your installer in a bash wrapper script which copies the 2 systemd files (rather than symlink them). This works, but means I have to install / uninstall using my script only.
Longer term I think quite a few people might want to have
/nix
either on a subvolume or bindmount so this could be an issue worth fixing IMHO. Many thanks!The text was updated successfully, but these errors were encountered: