summary refs log tree commit diff
path: root/nixos/modules/services/games
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-05-18 09:36:24 +0000
committerGitHub <noreply@github.com>2019-05-18 09:36:24 +0000
commit6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6 (patch)
tree6590fc8630f685b81d4f1a5487a54b31785f3c8b /nixos/modules/services/games
parentd40443ba6de52faf08bb33198c6e501f46b85a89 (diff)
parent786f02f7a45621b9f628f63649ff92546aff83b7 (diff)
downloadnixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.gz
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.bz2
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.lz
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.xz
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.zst
nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.zip
Merge pull request #60406 from JohnAZoidberg/remove-isnull
treewide: Remove usage of isNull
Diffstat (limited to 'nixos/modules/services/games')
-rw-r--r--nixos/modules/services/games/minecraft-server.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/games/minecraft-server.nix b/nixos/modules/services/games/minecraft-server.nix
index 7d26d150165..39a68f4b553 100644
--- a/nixos/modules/services/games/minecraft-server.nix
+++ b/nixos/modules/services/games/minecraft-server.nix
@@ -215,8 +215,8 @@ in {
     networking.firewall = mkIf cfg.openFirewall (if cfg.declarative then {
       allowedUDPPorts = [ serverPort ];
       allowedTCPPorts = [ serverPort ]
-        ++ optional (! isNull queryPort) queryPort
-        ++ optional (! isNull rconPort) rconPort;
+        ++ optional (queryPort != null) queryPort
+        ++ optional (rconPort != null) rconPort;
     } else {
       allowedUDPPorts = [ defaultServerPort ];
       allowedTCPPorts = [ defaultServerPort ];