[Nix-dev] automatically mount vboxsf

Andreas Herrmann andreash87 at gmx.ch
Mon Sep 8 09:57:36 CEST 2014


Hi Nicolas,

On Saturday 06 September 2014 20:25:43 Nicolas Pierron wrote:
> Have you tried listing it as an entry of the fileSystem of the vm, such as:
> 
> fileSystems."/host_home" = {
>   fsType = "vboxsf";
>   device = "hostHome";
> };
Thanks for the hint. I got it working with the following config:

      fileSystems."/host_home" = {
        fsType = "vboxsf";
        device = "hostHome";
        options = "ro";  # If you want it read-only
        noCheck = true;  # fsck would be pointless.
      };

Additionally, I had to add the vbox guest additions into the scope:

      system.fsPackages = [
        config.boot.kernelPackages.virtualboxGuestAdditions
      ];

Best,

Andreas


More information about the nix-dev mailing list