Files
Benoit de Chezelles 489972d8c8 nix: Add NixOS-based VMs for live testing in clean desktop env (#7928)
- Separate perSystemOutputs & globalOutputs in flake.nix
  (lots of indent changes!)
- Add NixOS VM configs for Gnome & Plasma testing
- Add section in contrib docs
2026-07-13 21:15:04 +02:00

29 lines
579 B
Nix

{ ... }:
let
repoTarget = "/home/dev/repo";
in
{
virtualisation.vmVariant = {
virtualisation.sharedDirectories."wezterm-repo" = {
# NOTE: env var needs to be set on VM start!
source = ''"$REPO"'';
target = repoTarget;
};
};
fileSystems.${repoTarget} = {
device = "wezterm-repo";
fsType = "9p";
options = [
# automount to keep boot fast
"x-systemd.automount"
# Read/Write access
"rw"
# noauto/nofail so the guest still boots even if the host path disappears
"noauto"
"nofail"
];
};
}