mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: got minecraft servers sorted
This commit is contained in:
parent
4c3ab7728c
commit
1f43844e90
8 changed files with 20 additions and 21 deletions
|
|
@ -8,7 +8,6 @@ let
|
|||
label = "Minecraft";
|
||||
name = "minecraft";
|
||||
world = "world0";
|
||||
secrets = "${secretPath}/${name}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
|
|
@ -29,9 +28,9 @@ in
|
|||
path0 = "${varPath}/${name}";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}-${world}";
|
||||
path0 = "${mntPath}/${name}/${world}";
|
||||
};
|
||||
secretPaths = {
|
||||
path0 = secrets;
|
||||
path0 = "${secretPath}/${name}";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ let
|
|||
label = "Minecraft";
|
||||
name = "minecraft";
|
||||
world = "world1";
|
||||
secrets = "${secretPath}/${name}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
|
|
@ -29,9 +28,9 @@ in
|
|||
path0 = "${varPath}/${name}";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}-${world}";
|
||||
path0 = "${mntPath}/${name}/${world}";
|
||||
};
|
||||
secretPaths = {
|
||||
path0 = secrets;
|
||||
path0 = "${secretPath}/${name}";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,5 +7,12 @@ let
|
|||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"d /mnt/storage/minecraft 0751 microvm wheel - -"
|
||||
];
|
||||
};
|
||||
|
||||
imports = importList;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,15 +154,15 @@ in
|
|||
tag = "read_only_nix_store";
|
||||
}
|
||||
{
|
||||
mountPoint = "/var/lib/${serviceCfg.name}";
|
||||
mountPoint = serviceCfg.varPaths.path0;
|
||||
proto = "virtiofs";
|
||||
source = serviceCfg.mntPaths.path0;
|
||||
tag = "${serviceCfg.name}_data";
|
||||
tag = "${serviceCfg.name}-${world}_data";
|
||||
}
|
||||
{
|
||||
mountPoint = "/run/secrets";
|
||||
proto = "virtiofs";
|
||||
source = "/run/secrets/${serviceCfg.name}";
|
||||
source = serviceCfg.secretPaths.path0;
|
||||
tag = "host_secrets";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -152,15 +152,15 @@ in
|
|||
tag = "read_only_nix_store";
|
||||
}
|
||||
{
|
||||
mountPoint = "/var/lib/${serviceCfg.name}";
|
||||
mountPoint = serviceCfg.varPaths.path0;
|
||||
proto = "virtiofs";
|
||||
source = serviceCfg.mntPaths.path0;
|
||||
tag = "${serviceCfg.name}_data";
|
||||
tag = "${serviceCfg.name}-${world}_data";
|
||||
}
|
||||
{
|
||||
mountPoint = "/run/secrets";
|
||||
proto = "virtiofs";
|
||||
source = "/run/secrets/${serviceCfg.name}";
|
||||
source = serviceCfg.secretPaths.path0;
|
||||
tag = "host_secrets";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -77,6 +77,9 @@ in
|
|||
MaxConnectionsPerTorrent = -1;
|
||||
MaxUploads = -1;
|
||||
MaxUploadsPerTorrent = -1;
|
||||
MaxActiveDownloads = -1;
|
||||
MaxActiveUploads = -1;
|
||||
MaxActiveTorrents = -1;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,4 @@ in
|
|||
dnsProvider = instances.web.dns.provider0;
|
||||
environmentFile = config.sops.secrets."dns/${instances.web.dns.provider0}".path;
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${serviceCfg.mntPaths.path0} 0755 microvm wheel - -"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,12 +106,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -"
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
"${serviceCfg.name}/env" = {
|
||||
owner = "root";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue