mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(ci): nf-fmt-nix
This commit is contained in:
parent
7a7057492c
commit
8b61cebf76
1 changed files with 204 additions and 204 deletions
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
{
|
||||
config,
|
||||
gensokyo-zone,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}: let
|
||||
# see https://gist.github.com/datakurre/cfdf627fb23ed8ff62bb7b3520b92674
|
||||
inherit (gensokyo-zone.lib) mapOptionDefaults;
|
||||
inherit (lib.options) mkOption mkPackageOption;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
inherit (lib.meta) getExe;
|
||||
inherit (config.lib.minecraft) mkAllowPlayerType mkPackType writeServerProperties writeAllowList writePermissions writePacks;
|
||||
cfg = config.services.minecraft-bedrock-server;
|
||||
in {
|
||||
in {
|
||||
options.services.minecraft-bedrock-server = with lib.types; {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
|
|
@ -180,7 +180,7 @@
|
|||
++ optional (cfg.permissions == null) "permissions.json");
|
||||
mkWorldPacks = type: let
|
||||
enabledPacks = filterAttrs (_: pack: pack.enable && pack.packType == type) cfg.packs;
|
||||
packsJsonPath = writePacks { inherit type; } enabledPacks;
|
||||
packsJsonPath = writePacks {inherit type;} enabledPacks;
|
||||
in
|
||||
mkIf (enabledPacks != {}) [
|
||||
"${packsJsonPath}:${cfg.dataDir}/worlds/${cfg.serverProperties.level-name}/${packsJsonPath.name}"
|
||||
|
|
@ -235,4 +235,4 @@
|
|||
confService
|
||||
(mkIf cfg.enable conf)
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue