- Separate perSystemOutputs & globalOutputs in flake.nix (lots of indent changes!) - Add NixOS VM configs for Gnome & Plasma testing - Add section in contrib docs
29 lines
579 B
Nix
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"
|
|
];
|
|
};
|
|
}
|