Add microvm data dirs
(untested because virtiofs mounts currently dont work)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ result
|
|||||||
.direnv/
|
.direnv/
|
||||||
book/
|
book/
|
||||||
fanny-efi-vars.fd
|
fanny-efi-vars.fd
|
||||||
|
nix-store-overlay.img
|
||||||
|
|||||||
@@ -57,6 +57,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L /var/lib/microvms/data - - - - /data/microvms"
|
||||||
|
"d /data/microvms 0755 root root" #not needed for real host?
|
||||||
|
];
|
||||||
|
|
||||||
malobeo.initssh = {
|
malobeo.initssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
authorizedKeys = sshKeys.admins;
|
authorizedKeys = sshKeys.admins;
|
||||||
|
|||||||
@@ -252,6 +252,10 @@ in
|
|||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
mountpoint = "/data";
|
mountpoint = "/data";
|
||||||
};
|
};
|
||||||
|
"encrypted/data/microvm" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/data/microvm";
|
||||||
|
};
|
||||||
reserved = {
|
reserved = {
|
||||||
# for cow delete if pool is full
|
# for cow delete if pool is full
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
@@ -70,6 +70,13 @@ rec {
|
|||||||
proto = "virtiofs";
|
proto = "virtiofs";
|
||||||
socket = "var.socket";
|
socket = "var.socket";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
source = "/var/lib/microvms/data/${hostName}";
|
||||||
|
mountPoint = "/data";
|
||||||
|
tag = "data";
|
||||||
|
proto = "virtiofs";
|
||||||
|
socket = "microdata.socket";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
interfaces = [
|
interfaces = [
|
||||||
|
|||||||
Reference in New Issue
Block a user