motd make gameservers inclusion more conditional

This commit is contained in:
2026-06-14 13:48:44 -05:00
parent a97b7fb2c3
commit 6b0744330b
+2 -1
View File
@@ -93,7 +93,7 @@ in {
motd_list)} motd_list)}
echo echo
${lib.optionalString (motd_gs_list != []) ''
# --- gameservers --- # --- gameservers ---
echo -e "''${headings}gameservers:''${reset}" echo -e "''${headings}gameservers:''${reset}"
${lib.concatStringsSep "\n" (map (service: '' ${lib.concatStringsSep "\n" (map (service: ''
@@ -106,6 +106,7 @@ in {
fi fi
'') '')
motd_gs_list)} motd_gs_list)}
''}
''; '';
environment.etc."motd".mode = "0755"; environment.etc."motd".mode = "0755";