feat(kyuuto): data share

This commit is contained in:
arcnmx 2024-10-28 09:51:15 -07:00
parent ab0d81cb5d
commit ce2ccebcc4
3 changed files with 67 additions and 36 deletions

View file

@ -13,6 +13,7 @@
__toString = _: config.services.nfs.export.root.path;
transfer = "${nfsRoot}/kyuuto/transfer";
media = "${nfsRoot}/kyuuto/media";
data = "${nfsRoot}/kyuuto/data";
};
in {
services.nfs = {
@ -27,6 +28,15 @@ in {
};
};
};
${nfsRoot.data} = {
flags = flagSets.common ++ ["fsid=130"] ++ flagSets.secip ++ ["rw"] ++ flagSets.anon_ro;
clients = {
local = {
machine = flagSets.allClients;
flags = flagSets.seclocal ++ ["rw" "no_all_squash"];
};
};
};
${nfsRoot.transfer} = {
flags = flagSets.common ++ ["fsid=129"] ++ ["rw" "async"];
clients = {
@ -54,6 +64,11 @@ in {
what = kyuuto.mountDir;
where = nfsRoot.media;
}
{
inherit type options wantedBy before;
what = kyuuto.dataDir;
where = nfsRoot.data;
}
{
inherit type options wantedBy before;
what = kyuuto.transferDir;

View file

@ -81,6 +81,17 @@ in {
"valid users" = ["@kyuuto-peeps"];
}
];
kyuuto-data = mkMerge [
kyuuto-media
{
path = kyuuto.dataDir;
comment = "Kyuuto Data";
writeable = true;
public = false;
browseable = false;
"valid users" = ["@kyuuto-peeps"];
}
];
shared = {
path = kyuuto.shareDir;
comment = "Shared Data";