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

nixos: Fix bind mounts in VM build #83

Closed devplayer0 closed 2 years ago

devplayer0 commented 2 years ago

Fixes #50. By exposing the bind mount fileSystems entries in virtualisation.fileSystems as well, the VM module will include them in its overridden fileSystems.

Note that the virtualisation.fileSystems option needs to be declared as a dummy since this option won't exist unless the VM module is actually imported.

talyz commented 2 years ago

This seems like a reasonable fix. Thank you!