summary refs log tree commit diff
path: root/nixos/modules/services/networking/flannel.nix
diff options
context:
space:
mode:
authorDaniel Schaefer <git@danielschaefer.me>2019-04-24 05:48:22 +0200
committerDaniel Schaefer <git@danielschaefer.me>2019-04-29 14:05:50 +0200
commit786f02f7a45621b9f628f63649ff92546aff83b7 (patch)
tree92784e131ccac4a1a63f7dbae6c228fb9d81468b /nixos/modules/services/networking/flannel.nix
parent5f14e83bd6b9ef1c83b035011267dd3d40278476 (diff)
downloadnixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar.gz
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar.bz2
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar.lz
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar.xz
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.tar.zst
nixpkgs-786f02f7a45621b9f628f63649ff92546aff83b7.zip
treewide: Remove usage of isNull
isNull "is deprecated; just write e == null instead" says the Nix manual
Diffstat (limited to 'nixos/modules/services/networking/flannel.nix')
-rw-r--r--nixos/modules/services/networking/flannel.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/flannel.nix b/nixos/modules/services/networking/flannel.nix
index c1f778ac139..dd2f6454e95 100644
--- a/nixos/modules/services/networking/flannel.nix
+++ b/nixos/modules/services/networking/flannel.nix
@@ -92,7 +92,7 @@ in {
         Needed when running with Kubernetes as backend as this cannot be auto-detected";
       '';
       type = types.nullOr types.str;
-      default = with config.networking; (hostName + optionalString (!isNull domain) ".${domain}");
+      default = with config.networking; (hostName + optionalString (domain != null) ".${domain}");
       example = "node1.example.com";
     };