chore(ci): nf-fmt-nix

This commit is contained in:
arcnmx 2024-09-20 15:40:27 -07:00
parent 7a7057492c
commit 8b61cebf76

View file

@ -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)
];
}
}