57 lines
975 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|