motd make gameservers inclusion more conditional
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user