Yoo this is Linux question but since NixOS has some differences with its kernel image, and mount setup and dependencies on /nix/store I thought I’d make sense to ask here.
I have a dual booted machine w/ Windows alongside NixOS.
There are many times when I play games on Windows w/ friends but wish I had access to my NixOS env and data for things like programming or other stuff. I could simply reboot but I know that I might play a game that w/ anti-cheat that doesn’t support Linux soon, I don’t feel like rebooting.
I won’t be installing games on Linux, I do want to put anticheat and things on the OS.
I’m curious if its possible to pass the block device where by Linux Filesystem Partition w/ NixOS resides into a Virtual Machine, then use it within a NixOS virtual machine while on Windows so I can access my /home and /nix/store that are on that partition. The filesystem is BTRFS so Windows cannot understand the partition, but if I passed it to a NixOS VM would it be able to interface with it?
Note: my EFI bootloader is on the same block device but a different partition that also hosts Windows.
Would I need to put the EFI partitions on a separate disk so that windows can pass the whole block device and the partition map to the VM so it can be mounted and read in the VM?
Lmk how feasible or nonsensical this is, I was just shooting in the dark.