From 17ec7e4401eedb410b94617b6887fafb5d4ad419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 11:39:54 +0200 Subject: [PATCH] nixos/asf: remove subdirectories from bot config --- nixos/modules/services/games/asf.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/games/asf.nix b/nixos/modules/services/games/asf.nix index 8e96ea29c347..fd441ec950f7 100644 --- a/nixos/modules/services/games/asf.nix +++ b/nixos/modules/services/games/asf.nix @@ -212,12 +212,12 @@ respectively `0` because NixOS takes care of updating everything. preStart = let createBotsScript = pkgs.runCommandLocal "ASF-bots" {} '' - mkdir -p $out/lib/asf/bots + mkdir -p $out # clean potential removed bots - rm -rf $out/lib/asf/bots/*.json + rm -rf $out/*.json for i in ${strings.concatStringsSep " " (lists.map (x: "${getName x},${x}") (attrsets.mapAttrsToList mkBot cfg.bots))}; do IFS=","; set -- $i - ln -fs $2 $out/lib/asf/bots/$1 + ln -fs $2 $out/$1 done ''; replaceSecretBin = "${pkgs.replace-secret}/bin/replace-secret"; @@ -232,7 +232,7 @@ respectively `0` because NixOS takes care of updating everything. ''} ${optionalString (cfg.ipcSettings != {}) '' - ln -fs ${createBotsScript}/lib/asf/bots/* config/ + ln -fs ${createBotsScript}/* config/ ''} rm -f www