mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(mugetsu): nf-generate
This commit is contained in:
parent
ff0c00384d
commit
de12febf68
12 changed files with 229 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
data = "${nfsRoot}/kyuuto/data";
|
||||
systems = "${nfsRoot}/kyuuto/systems";
|
||||
gengetsu = "${nfsRoot.systems}/gengetsu";
|
||||
mugetsu = "${nfsRoot.systems}/mugetsu";
|
||||
};
|
||||
in {
|
||||
services.nfs = {
|
||||
|
|
@ -63,6 +64,24 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
"${nfsRoot.mugetsu}/root" = {
|
||||
flags = flagSets.common ++ ["fsid=170"] ++ ["async"];
|
||||
clients = {
|
||||
mugetsu = {
|
||||
machine = flagSets.mugetsuClients;
|
||||
flags = flagSets.metal;
|
||||
};
|
||||
};
|
||||
};
|
||||
"${nfsRoot.mugetsu}/boot" = {
|
||||
flags = flagSets.common ++ ["fsid=171"] ++ ["async"];
|
||||
clients = {
|
||||
mugetsu = {
|
||||
machine = flagSets.mugetsuClients;
|
||||
flags = flagSets.metal;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -101,5 +120,15 @@ in {
|
|||
what = "${kyuuto.dataDir}/systems/gengetsu/fs/boot";
|
||||
where = "${nfsRoot.gengetsu}/boot";
|
||||
}
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = "${kyuuto.dataDir}/systems/mugetsu/fs/root";
|
||||
where = "${nfsRoot.mugetsu}/root";
|
||||
}
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = "${kyuuto.dataDir}/systems/mugetsu/fs/boot";
|
||||
where = "${nfsRoot.mugetsu}/boot";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue