mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -10,7 +10,7 @@
|
|||
inherit (config) kyuuto;
|
||||
inherit (config.services.nfs.export) flagSets;
|
||||
nfsRoot = {
|
||||
__toString = _: config.services.nfs.export.root.path;
|
||||
__toString = _: config.services.nfs.export.root.path;
|
||||
transfer = "${nfsRoot}/kyuuto/transfer";
|
||||
media = "${nfsRoot}/kyuuto/media";
|
||||
};
|
||||
|
|
@ -19,16 +19,16 @@ in {
|
|||
export = {
|
||||
paths = {
|
||||
${nfsRoot.media} = {
|
||||
flags = flagSets.common ++ [ "fsid=128" ] ++ flagSets.secip ++ [ "rw" ] ++ flagSets.anon_ro;
|
||||
flags = flagSets.common ++ ["fsid=128"] ++ flagSets.secip ++ ["rw"] ++ flagSets.anon_ro;
|
||||
clients = {
|
||||
local = {
|
||||
machine = flagSets.allClients;
|
||||
flags = flagSets.seclocal ++ [ "rw" "no_all_squash" ];
|
||||
flags = flagSets.seclocal ++ ["rw" "no_all_squash"];
|
||||
};
|
||||
};
|
||||
};
|
||||
${nfsRoot.transfer} = {
|
||||
flags = flagSets.common ++ [ "fsid=129" ] ++ [ "rw" "async" ];
|
||||
flags = flagSets.common ++ ["fsid=129"] ++ ["rw" "async"];
|
||||
clients = {
|
||||
local = {
|
||||
machine = flagSets.allClients;
|
||||
|
|
@ -47,16 +47,17 @@ in {
|
|||
"nfs-mountd.service"
|
||||
];
|
||||
before = wantedBy;
|
||||
in mkIf config.services.nfs.server.enable [
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = kyuuto.mountDir;
|
||||
where = nfsRoot.media;
|
||||
}
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = kyuuto.transferDir;
|
||||
where = nfsRoot.transfer;
|
||||
}
|
||||
];
|
||||
in
|
||||
mkIf config.services.nfs.server.enable [
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = kyuuto.mountDir;
|
||||
where = nfsRoot.media;
|
||||
}
|
||||
{
|
||||
inherit type options wantedBy before;
|
||||
what = kyuuto.transferDir;
|
||||
where = nfsRoot.transfer;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue