diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-04-24 05:48:22 +0200 |
---|---|---|
committer | Daniel Schaefer <git@danielschaefer.me> | 2019-04-29 14:05:50 +0200 |
commit | 786f02f7a45621b9f628f63649ff92546aff83b7 (patch) | |
tree | 92784e131ccac4a1a63f7dbae6c228fb9d81468b /nixos/modules/services/monitoring/graphite.nix | |
parent | 5f14e83bd6b9ef1c83b035011267dd3d40278476 (diff) | |
download | nixpkgs-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/monitoring/graphite.nix')
-rw-r--r-- | nixos/modules/services/monitoring/graphite.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index 2365142af40..d6473220c14 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -19,13 +19,13 @@ let graphiteLocalSettings = pkgs.writeText "graphite_local_settings.py" ( "STATIC_ROOT = '${staticDir}'\n" + - optionalString (! isNull config.time.timeZone) "TIME_ZONE = '${config.time.timeZone}'\n" + optionalString (config.time.timeZone != null) "TIME_ZONE = '${config.time.timeZone}'\n" + cfg.web.extraConfig ); graphiteApiConfig = pkgs.writeText "graphite-api.yaml" '' search_index: ${dataDir}/index - ${optionalString (!isNull config.time.timeZone) ''time_zone: ${config.time.timeZone}''} + ${optionalString (config.time.timeZone != null) ''time_zone: ${config.time.timeZone}''} ${optionalString (cfg.api.finders != []) ''finders:''} ${concatMapStringsSep "\n" (f: " - " + f.moduleName) cfg.api.finders} ${optionalString (cfg.api.functions != []) ''functions:''} |