mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(kyuuto): data share
This commit is contained in:
parent
ab0d81cb5d
commit
ce2ccebcc4
3 changed files with 67 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue