diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-08-07 14:43:58 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-08-07 14:45:39 +0100 |
commit | ba930d8679a3945e9a2196f22bda8a1f06972438 (patch) | |
tree | 8201688d1a1742131cd27ca753da8305305701b6 /nixos/modules/services/games | |
parent | e879d83e38030fd37787ecbb01d5bddc5678c8ff (diff) | |
download | nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar.gz nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar.bz2 nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar.lz nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar.xz nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.tar.zst nixpkgs-ba930d8679a3945e9a2196f22bda8a1f06972438.zip |
nixos/modules: remove trailing whitespace
This leads to ci failure otherwise if the file gets changed. git-blame can ignore whitespace changes.
Diffstat (limited to 'nixos/modules/services/games')
-rw-r--r-- | nixos/modules/services/games/minetest-server.nix | 16 | ||||
-rw-r--r-- | nixos/modules/services/games/terraria.nix | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/nixos/modules/services/games/minetest-server.nix b/nixos/modules/services/games/minetest-server.nix index 98e69c6dc0e..f52079fc1ef 100644 --- a/nixos/modules/services/games/minetest-server.nix +++ b/nixos/modules/services/games/minetest-server.nix @@ -5,12 +5,12 @@ with lib; let cfg = config.services.minetest-server; flag = val: name: if val != null then "--${name} ${val} " else ""; - flags = [ - (flag cfg.gameId "gameid") - (flag cfg.world "world") - (flag cfg.configPath "config") - (flag cfg.logPath "logfile") - (flag cfg.port "port") + flags = [ + (flag cfg.gameId "gameid") + (flag cfg.world "world") + (flag cfg.configPath "config") + (flag cfg.logPath "logfile") + (flag cfg.port "port") ]; in { @@ -26,7 +26,7 @@ in type = types.nullOr types.str; default = null; description = '' - Id of the game to use. To list available games run + Id of the game to use. To list available games run `minetestserver --gameid list`. If only one game exists, this option can be null. @@ -59,7 +59,7 @@ in type = types.nullOr types.path; default = null; description = '' - Path to logfile for logging. + Path to logfile for logging. If set to null, logging will be output to stdout which means all output will be catched by systemd. diff --git a/nixos/modules/services/games/terraria.nix b/nixos/modules/services/games/terraria.nix index a59b74c0b4c..413660321ec 100644 --- a/nixos/modules/services/games/terraria.nix +++ b/nixos/modules/services/games/terraria.nix @@ -7,7 +7,7 @@ let worldSizeMap = { small = 1; medium = 2; large = 3; }; valFlag = name: val: optionalString (val != null) "-${name} \"${escape ["\\" "\""] (toString val)}\""; boolFlag = name: val: optionalString val "-${name}"; - flags = [ + flags = [ (valFlag "port" cfg.port) (valFlag "maxPlayers" cfg.maxPlayers) (valFlag "password" cfg.password) |