Files
machine_setup/nix/configuration/hosts/robot/vm_disk.nix
2026-11-19 17:16:43 -05:00

57 lines
975 B
Nix

{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
config = {
# Mount the local disk
fileSystems = lib.mkIf config.me.mountPersistence {
"/persist" = {
fsType = "none";
device = "/robot/.persist";
options = [
"bind"
"rw"
];
depends = [
"/robot/.persist"
];
neededForBoot = true;
};
"/state" = {
fsType = "none";
device = "/robot/.state";
options = [
"bind"
"rw"
];
depends = [
"/robot/.state"
];
neededForBoot = true;
};
"/robot" = lib.mkForce {
device = "host";
fsType = "9p";
options = [
"noatime"
"trans=virtio"
"version=9p2000.L"
"cache=mmap"
"msize=512000"
# "noauto"
# "x-systemd.automount"
];
neededForBoot = true;
};
};
};
}