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